datasize

package
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 23, 2021 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package datasize defines a few useful constants for binary prefix byte sizes.

Index

Constants

View Source
const (
	B = 1 // byte

	// Decimal
	KB = 1000 * B  // kilobyte
	MB = 1000 * KB // megabyte
	GB = 1000 * MB // gigabyte
	TB = 1000 * GB // terabyte
	PB = 1000 * TB // petabyte
	EB = 1000 * PB // exabyte

	// Binary
	KiB = 1024 * B   // kibibyte
	MiB = 1024 * KiB // mebibyte
	GiB = 1024 * MiB // gibibyte
	TiB = 1024 * GiB // tebibyte
	PiB = 1024 * TiB // pebibyte
	EiB = 1024 * PiB // exbibyte
)

http://en.wikipedia.org/wiki/Binary_prefix

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL