Versions in this module Expand all Collapse all v3 v3.8.0 May 1, 2026 Changes in this version + const Day + const Week + func ParseDuration(s string) (time.Duration, error) + type Duration time.Duration + func (d *Duration) DecodeMsg(reader *msgp.Reader) error + func (d *Duration) UnmarshalJSON(bs []byte) error + func (d *Duration) UnmarshalMsg(b []byte) ([]byte, error) + func (d *Duration) UnmarshalYAML(value *yaml.Node) error + func (d Duration) D() time.Duration + func (d Duration) EncodeMsg(w *msgp.Writer) error + func (d Duration) MarshalMsg(bytes []byte) ([]byte, error) + func (d Duration) MarshalYAML() (interface{}, error) + func (d Duration) Msgsize() int