Documentation
¶
Index ¶
- Constants
- func BytesToGb(bytes int64) int64
- func BytesToGib(bytes int64) int64
- func BytesToMib(bytes int64) int64
- func BytesToString(b int64) string
- func GbToBytes(gb int64) int64
- func GbToMib(gb int64) int64
- func GibToBytes(gib int64) int64
- func GibToMib(gib int64) int64
- func MibToBytes(mib int64) int64
- func MibToGiB(mib int64) int64
Constants ¶
View Source
const ( // KiB 1024 bytes KiB = 1 << (10 * iota) // MiB 1024 KiB MiB // GiB 1024 MiB GiB // TiB 1024 GiB TiB // PiB 1024 TiB PiB )
View Source
const ( KB = 1000 MB = 1000 * KB GB = 1000 * MB TB = 1000 * GB PB = 1000 * TB )
Variables ¶
This section is empty.
Functions ¶
func BytesToGib ¶
func BytesToMib ¶
func BytesToString ¶
func GibToBytes ¶
func MibToBytes ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.