mirror of
https://github.com/moby/moby.git
synced 2026-08-04 23:21:00 +00:00
Co-Authored-by: Sebastiaan van Stijn <github@gone.nl> Signed-off-by: Josh Chorlton <jchorlton@gmail.com> Signed-off-by: Cory Snider <csnider@mirantis.com> Signed-off-by: Josh Chorlton <jchorlton@gmail.com>
13 lines
232 B
Go
13 lines
232 B
Go
package io
|
|
|
|
const (
|
|
// Byte is 8 bits
|
|
Byte int64 = 1
|
|
// KibiByte (KiB) is 1024 Bytes
|
|
KibiByte = Byte * 1024
|
|
// MebiByte (MiB) is 1024 KiB
|
|
MebiByte = KibiByte * 1024
|
|
// GibiByte (GiB) is 1024 MiB
|
|
GibiByte = MebiByte * 1024
|
|
)
|