Documentation
¶
Index ¶
Constants ¶
View Source
const ( Bit Bits = 1 Byte = 8 * Bit // https://en.wikipedia.org/wiki/Orders_of_magnitude_(data) KB = 1000 * Byte MB = 1000 * KB GB = 1000 * MB TB = 1000 * GB PB = 1000 * TB EB = 1000 * PB )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bits ¶
type Bits int64
Bits represents a quantity of Bits, bytes, kilobytes or megabytes. Bits are parsed and formatted using the IEEE / SI standards, which use multiples of 1000 to represent kilobytes and megabytes (instead of multiples of 1024). For more information see https://en.wikipedia.org/wiki/Megabyte#Definitions.
Click to show internal directories.
Click to hide internal directories.