Documentation
¶
Overview ¶
Package types provides data types with explicit JSON representations.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Duration ¶
Duration is a signed nanosecond duration encoded as a JSON string ("30s").
func (Duration) MarshalJSON ¶
MarshalJSON encodes d as a duration string.
func (*Duration) UnmarshalJSON ¶
UnmarshalJSON accepts duration strings or null (zero). Errors do not modify d.
Click to show internal directories.
Click to hide internal directories.