Documentation
¶
Index ¶
Constants ¶
View Source
const ( // KiB is bytes per Kibibyte KiB // MiB is bytes per Mebibyte MiB // GiB is bytes per Gibibyte GiB // TiB is bytes per Tebibyte TiB )
Variables ¶
This section is empty.
Functions ¶
func Bank ¶
Bank will return a non-copy of a string if it has been used before. Otherwise, it will store the string as the unique instance.
func FormatBytes ¶
FormatBytes takes a number of bytes and formats it as a string
func FormatUTCOffset ¶
FormatUTCOffset converts a duration to a string of format "-07:00"
func StringSlicesEqual ¶
StringSlicesEqual checks if two string slices with arbitrary order have the same elements
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.