Documentation ¶
Overview ¶
Package timeutil adds utility functions to the standard time library.
The package provides a set of functions to work with time.Duration in human readable format in JSON.
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Duration ¶
Duration is an alias for the standard time.Duration.
func (Duration) MarshalJSON ¶
MarshalJSON returns d as the JSON encoding of d. It encodes the time.Duration in human readable format (e.g.: 20s, 1h, ...).
Click to show internal directories.
Click to hide internal directories.