Versions in this module Expand all Collapse all v1 v1.0.14 Nov 7, 2025 v1.0.13 Nov 7, 2025 v1.0.12 Nov 6, 2025 v1.0.11 Nov 6, 2025 v1.0.10 Nov 5, 2025 v1.0.9 Nov 5, 2025 v1.0.8 Nov 5, 2025 v1.0.7 Nov 5, 2025 v1.0.6 Nov 5, 2025 v1.0.5 Nov 4, 2025 v1.0.4 Nov 4, 2025 Changes in this version type Size + const GB + const KB + const MB + const TB + func (s Size) Format(f fmt.State, verb rune) v1.0.3 Oct 27, 2025 v1.0.2 Oct 27, 2025 v1.0.1 Oct 27, 2025 Changes in this version + type Duration time.Duration + func MustParseDuration(s string) Duration + func NewDuration(s string) Duration + func ParseDuration(s string) (Duration, error) + func (d *Duration) UnmarshalJSON(data []byte) error + func (d *Duration) UnmarshalText(text []byte) error + func (d *Duration) UnmarshalYAML(unmarshal func(interface{}) error) error + func (d Duration) Add(other Duration) Duration + func (d Duration) Div(factor float64) Duration + func (d Duration) Duration() time.Duration + func (d Duration) Hours() float64 + func (d Duration) IsZero() bool + func (d Duration) MarshalJSON() ([]byte, error) + func (d Duration) MarshalText() ([]byte, error) + func (d Duration) MarshalYAML() (interface{}, error) + func (d Duration) Microseconds() int64 + func (d Duration) Milliseconds() int64 + func (d Duration) Minutes() float64 + func (d Duration) Mul(factor float64) Duration + func (d Duration) Nanoseconds() int64 + func (d Duration) PostgreSQLString() string + func (d Duration) Round(precision time.Duration) Duration + func (d Duration) Seconds() float64 + func (d Duration) String() string + func (d Duration) Sub(other Duration) Duration + func (d Duration) Truncate(precision time.Duration) Duration + type Size uint64 + func MustParseSize(s string) Size + func NewSize(s string) Size + func ParseSize(s string) (Size, error) + func (s *Size) UnmarshalJSON(data []byte) error + func (s *Size) UnmarshalText(text []byte) error + func (s *Size) UnmarshalYAML(unmarshal func(interface{}) error) error + func (s Size) Add(other Size) Size + func (s Size) Bytes() uint64 + func (s Size) Div(factor float64) Size + func (s Size) GB() uint64 + func (s Size) IsZero() bool + func (s Size) KB() uint64 + func (s Size) MB() uint64 + func (s Size) MarshalJSON() ([]byte, error) + func (s Size) MarshalText() ([]byte, error) + func (s Size) MarshalYAML() (interface{}, error) + func (s Size) Mul(factor float64) Size + func (s Size) PostgreSQLMB() string + func (s Size) PostgreSQLString() string + func (s Size) String() string + func (s Size) Sub(other Size) Size