Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Duration ¶
Duration is a wrapper type for time.Duration which provides human-friendly text (un)marshaling. See https://github.com/golang/go/issues/16039
func (Duration) MarshalText ¶
MarshalText converts a duration to text.
func (*Duration) Set ¶
Set sets the duration from the given string. Implements the pflag.Value interface.
func (*Duration) UnmarshalText ¶
UnmarshalText parses text into a duration value.
Click to show internal directories.
Click to hide internal directories.