Convert string to duration in golang
Full Changelog: https://github.com/xhit/go-str2duration/compare/v2.0.0...v2.1.0
This version use the same time.ParseDuration
from standard Go, but support for days and weeks where a day is 24 hour.
µs
and us
are equivalent for microsecond
This is a breaking change!
Parser
struct and initialize it.NewStr2DurationParser
function removed.Str2Duration
is a public function in the package and it's not part of a struct.Initial release