humanize

Function

ArgDescriptionType
bytesFormat bytes with units (e.g. MB)int64
ibytesFormat bytes with units (e.g. MiB)int64
timeFormat time (e.g. 2 hours ago)time.Time
commaFormat 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).