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 BytesPerSecondsString ¶ added in v0.9.6
BytesPerSecondsString formats the given value bytes per second with the appropriate base-10 suffix (KB/s, MB/s, GB/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.