octets

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2019 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package octets contains consts and methods to simplify dealing with file sizes

Index

Constants

View Source
const (
	Byte int64 = 1.0 << (10 * iota)
	KiloByte
	MegaByte
	GigaByte
	TeraByte
	PetaByte
	ExaByte

	B  int64 = Byte
	KB int64 = KiloByte
	MB int64 = MegaByte
	GB int64 = GigaByte
	TB int64 = TeraByte
	PB int64 = PetaByte
	EB int64 = ExaByte

	Octet     int64 = Byte
	KiloOctet int64 = KiloByte
	MegaOctet int64 = MegaByte
	GigaOctet int64 = GigaByte
	TeraOctet int64 = GigaByte
	PetaOctet int64 = PetaByte
	ExaOctet  int64 = ExaByte

	O  int64 = Octet
	Ko int64 = KiloOctet
	Mo int64 = MegaOctet
	Go int64 = GigaOctet
	To int64 = TeraOctet
	Po int64 = PetaOctet
	Eo int64 = ExaOctet
)

List of all different supported type

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