Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Count ¶
Count takes a number and prints it in a human readable format, e.g. 1000 -> 1k, 1000000 -> 1M, 1000000000 -> 1G
func CountSmall ¶
CountSmall is like Count, but formats numbers smaller than 1000 as integers
Types ¶
type Countable ¶
type Countable uint64
Countable is a uint64 that can be printed in a human readable format
type Durationable ¶
Durationable is a time.Duration that can be printed in a human readable format and will prepend 'd' for 'days' in case the duration is above 24 hours
func (Durationable) String ¶
func (d Durationable) String() string
Click to show internal directories.
Click to hide internal directories.