Documentation ¶
Index ¶
- Constants
- type BitSize
- func (size BitSize) Bits() uint64
- func (size BitSize) Bytes() float64
- func (size BitSize) Exabytes() float64
- func (size BitSize) Gigabytes() float64
- func (size BitSize) Kilobytes() float64
- func (size BitSize) Megabytes() float64
- func (size BitSize) Petabytes() float64
- func (size BitSize) String() string
- func (size BitSize) Terabytes() float64
Constants ¶
View Source
const ( // Bit represents 1 bit Bit BitSize = 1 // Byte is 8 bits Byte = 8 * Bit // B is short for Byte B = Byte // Kilobyte represents 1024 bytes Kilobyte = 1024 * Byte // KB is short for Kilobyte KB = Kilobyte // Megabyte represents 1024 kilobytes Megabyte = 1024 * Kilobyte // MB is short for Megabyte MB = Megabyte // Gigabyte represents 1024 megabytes Gigabyte = 1024 * Megabyte // GB is short for Gigabyte GB = Gigabyte // Terabyte represents 1024 gigabytes Terabyte = 1024 * Gigabyte // TB is short for Terabyte TB = Terabyte // Petabyte represents 1024 terabytes Petabyte = 1024 * Terabyte // PB is short for Petabyte PB = Petabyte // Exabyte represents 1024 petabytes Exabyte = 1024 * Petabyte // EB is short for Exabyte EB = Exabyte )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BitSize ¶
type BitSize float64
BitSize represents data size in various units
Click to show internal directories.
Click to hide internal directories.