Documentation
¶
Index ¶
Constants ¶
View Source
const ( BINARY = 1024 BYTE = 1 KILOBYTE MemoryUnit = BINARY * BYTE MEGABYTE = BINARY * KILOBYTE GIGABYTE = BINARY * MEGABYTE TERABYTE = BINARY * GIGABYTE )
Variables ¶
This section is empty.
Functions ¶
func IsMemoryUnit ¶
Types ¶
type MemoryUnit ¶
type MemoryUnit float64
func FromAbbreviation ¶
func FromAbbreviation(abbr string) (MemoryUnit, error)
Click to show internal directories.
Click to hide internal directories.