Documentation ¶
Index ¶
Constants ¶
View Source
const ( BINARY = 1024 DECIMAL = 1000 BYTE = 1 KILOBYTE StorageUnit = DECIMAL * BYTE MEGABYTE = DECIMAL * KILOBYTE GIGABYTE = DECIMAL * MEGABYTE TERABYTE = DECIMAL * GIGABYTE PETABYTE = DECIMAL * TERABYTE EXABYTE = DECIMAL * PETABYTE ZETTABYTE = DECIMAL * EXABYTE YOTTABYTE = DECIMAL * ZETTABYTE KIBIBYTE StorageUnit = BINARY * BYTE MEBIBYTE = BINARY * KIBIBYTE GIBIBYTE = BINARY * MEBIBYTE TEBIBYTE = BINARY * GIBIBYTE PEBIBYTE = BINARY * TEBIBYTE EXBIBYTE = BINARY * PEBIBYTE ZEBIBYTE = BINARY * EXBIBYTE YOBIBYTE = BINARY * ZEBIBYTE )
Variables ¶
This section is empty.
Functions ¶
func IsStorageUnit ¶
Types ¶
type StorageUnit ¶
type StorageUnit float64
func FromAbbreviation ¶
func FromAbbreviation(abbr string) (StorageUnit, error)
Click to show internal directories.
Click to hide internal directories.