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 |
Format items in human readable way.
Formats a byte count in human readable way (e.g. Mb, Gb etc).