Skip to content
Please update to the latest release 0.77.2 to address Multiple CVEs.

humanize

Function
Arg Description Type
bytes Format bytes with units (e.g. MB) int64
ibytes Format bytes with units (e.g. MiB) int64
time Format time (e.g. 2 hours ago) time.Time
comma Format integer with comma (e.g. 1,230) int64

Description

Format items in human readable way.

Formats a byte count in human readable way (e.g. Mb, Gb etc).