Releases: xhit/go-str2duration
Releases · xhit/go-str2duration
v2.1.0
What's Changed
- Convert duration to string supporting days and weeks by @xhit in #3
Full Changelog: v2.0.0...v2.1.0
v2.0.0
This version use the same time.ParseDuration
from standard Go, but support for days and weeks where a day is 24 hour.
Support us for microsecond
µs
and us
are equivalent for microsecond
v1.1.0
This is a breaking change!
- No need to use a
Parser
struct and initialize it.
NewStr2DurationParser
function removed.
Str2Duration
is a public function in the package and it's not part of a struct.