Versions in this module Expand all Collapse all v1 v1.1.0 Aug 18, 2022 v1.0.0 Jul 8, 2022 Changes in this version + var ErrBadFormat = errors.New("bad format string") + var ErrNoMonth = errors.New("no months allowed") + type Duration struct + Days int + Hours int + Minutes int + Seconds int + Weeks int + Years int + func FromString(dur string) (*Duration, error) + func (d *Duration) HasTimePart() bool + func (d *Duration) String() string + func (d *Duration) ToDuration() time.Duration