duration

package
v3.0.0-beta17 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 18, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FmtShortDuration

func FmtShortDuration(d time.Duration) string

Types

type Duration

type Duration struct {
	time.Duration
}

func New

func New(d time.Duration) *Duration

func (Duration) IsZero

func (d Duration) IsZero() bool

func (Duration) MarshalJSON

func (d Duration) MarshalJSON() ([]byte, error)

func (Duration) Positive

func (d Duration) Positive() bool

func (*Duration) UnmarshalJSON

func (d *Duration) UnmarshalJSON(b []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL