xhit / go-str2duration

Convert string to duration in golang
BSD 3-Clause "New" or "Revised" License
101 stars 7 forks source link

Export Day and Week #4

Closed dekimsey closed 1 year ago

dekimsey commented 1 year ago

Hi, I found myself repeatedly typing out the constants for Day and Week, I thought it might be helpful if we simply exported them for convenience sakes :)

This is mostly for consistency with time.Time's exported Durations.

xhit commented 1 year ago

Perfect, thanks for the PR!