Documentation ¶
Index ¶
- func ViperDecoderHook() libmap.DecodeHookFuncType
- type Duration
- func (d Duration) Days() int64
- func (d Duration) MarshalCBOR() ([]byte, error)
- func (d Duration) MarshalJSON() ([]byte, error)
- func (d Duration) MarshalTOML() ([]byte, error)
- func (d Duration) MarshalText() ([]byte, error)
- func (d Duration) MarshalYAML() (interface{}, error)
- func (d Duration) String() string
- func (d Duration) Time() time.Duration
- func (d Duration) TruncateDays() Duration
- func (d Duration) TruncateHours() Duration
- func (d Duration) TruncateMicroseconds() Duration
- func (d Duration) TruncateMilliseconds() Duration
- func (d Duration) TruncateMinutes() Duration
- func (d Duration) TruncateSeconds() Duration
- func (d *Duration) UnmarshalCBOR(bytes []byte) error
- func (d *Duration) UnmarshalJSON(bytes []byte) error
- func (d *Duration) UnmarshalTOML(i interface{}) error
- func (d *Duration) UnmarshalText(bytes []byte) error
- func (d *Duration) UnmarshalYAML(value *yaml.Node) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ViperDecoderHook ¶
func ViperDecoderHook() libmap.DecodeHookFuncType
Types ¶
type Duration ¶
func ParseDuration ¶
func (Duration) MarshalCBOR ¶
func (Duration) MarshalJSON ¶
func (Duration) MarshalTOML ¶
func (Duration) MarshalText ¶
func (Duration) MarshalYAML ¶
func (Duration) TruncateDays ¶ added in v1.15.3
func (Duration) TruncateHours ¶ added in v1.15.3
func (Duration) TruncateMicroseconds ¶ added in v1.15.3
func (Duration) TruncateMilliseconds ¶ added in v1.15.3
func (Duration) TruncateMinutes ¶ added in v1.15.3
func (Duration) TruncateSeconds ¶ added in v1.15.3
func (*Duration) UnmarshalCBOR ¶
func (*Duration) UnmarshalJSON ¶
func (*Duration) UnmarshalTOML ¶
func (*Duration) UnmarshalText ¶
func (*Duration) UnmarshalYAML ¶
Click to show internal directories.
Click to hide internal directories.