Documentation ¶
Overview ¶
Package units contains helpers to convert sizes to humand-readable strings.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BitsPerSecondsString ¶
BitsPerSecondsString formats the given value bits per second with the appropriate suffix (Kbit/s, Mbit/s, Gbit/s, ...)
func BytesStringBase10 ¶
BytesStringBase10 formats the given value as bytes with the appropriate base-10 suffix (KB, MB, GB, ...)
func BytesStringBase2 ¶
BytesStringBase2 formats the given value as bytes with the appropriate base-2 suffix (KiB, MiB, GiB, ...)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.