Documentation ¶
Overview ¶
Package format contains utilities for formatting data.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ElemOrDefault ¶ added in v0.3.0
func ElemOrDefault[T any](v *T) (t T)
ElemOrDefault returns the element of v or default.
func HumanDuration ¶
HumanDuration returns a succinct representation of the provided duration with limited precision for consumption by humans. It provides ~2-3 significant figures of duration.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.