Documentation
¶
Overview ¶
Package duration helps to represent human-readable duration values in JSON.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Duration ¶
Duration helps to represent human-readable duration values in JSON.
func (Duration) MarshalJSON ¶
MarshalJSON renders duration as a human-readable JSON string (for example, "2s").
func (*Duration) UnmarshalJSON ¶
UnmarshalJSON parses a JSON string like "500ms" into a duration value.
Click to show internal directories.
Click to hide internal directories.