Documentation ¶
Overview ¶
Package units is taken from https://github.com/docker/go-units
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BytesSize ¶
BytesSize returns a human-readable size in bytes, kibibytes, mebibytes, gibibytes, or tebibytes (eg. "44.2kiB", "17.6MiB").
func CustomSize ¶
CustomSize returns a human-readable approximation of a size using custom format.
func HumanSize ¶
HumanSize returns a human-readable approximation of a size with a width of 5 (eg. "2.746MB", "796.0KB").
func HumanSizeWithPrecision ¶
HumanSizeWithPrecision allows the size to be in any precision.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.