Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatDuration ¶
FormatDuration formats a duration as a relative time.
Precision is the number of units to include. For example, for 65 seconds a precision of 1 would return "1 min" and a precision of 2 would return "1 min 5 secs".
Types ¶
Click to show internal directories.
Click to hide internal directories.