Go Str2duration Versions Save

Convert string to duration in golang

v2.1.0

1 year ago

What's Changed

Full Changelog: https://github.com/xhit/go-str2duration/compare/v2.0.0...v2.1.0

v2.0.0

3 years ago

This version use the same time.ParseDuration from standard Go, but support for days and weeks where a day is 24 hour.

v1.2.0

3 years ago

µs and us are equivalent for microsecond

v1.1.0

3 years ago

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.

v1.0.1

4 years ago

Initial release