Documentation ¶
Overview ¶
Package timeutil provides utility functions for working with time-related operations.
This package offers a collection of functions that facilitate working with time.Duration in a human-readable format when dealing with 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.