constants

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2019 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package constants has various definitions

Index

Constants

View Source
const (

	// UnitBytes is bytes for "Bytes" output
	UnitBytes = 1

	// UnitKiloBytes is bytes for "KiBytes" output
	UnitKiloBytes = UnitBytes * 1000

	// UnitMegaBytes is bytes for "MiBytes" output
	UnitMegaBytes = UnitKiloBytes * 1000

	// UnitGigaBytes is bytes for "GiBytes" output
	UnitGigaBytes = UnitMegaBytes * 1000

	// UnitBytesStr is unit string for bytes
	UnitBytesStr = "B"

	// UnitKiloBytesStr is unit string for kilobytes
	UnitKiloBytesStr = "K"

	// UnitMegaBytesStr is unit string for megabytes
	UnitMegaBytesStr = "M"

	// UnitGigaBytesStr is unit string for gigabytes
	UnitGigaBytesStr = "G"

	// UnitKibiBytes is bytes for "KiBytes" output
	UnitKibiBytes = UnitBytes * 1024

	// UnitMibiBytes is bytes for "MiBytes" output
	UnitMibiBytes = UnitKiloBytes * 1024

	// UnitGibiBytes is bytes for "GiBytes" output
	UnitGibiBytes = UnitMegaBytes * 1024

	// UnitKibiBytesStr is unit string for kilobytes
	UnitKibiBytesStr = "Ki"

	// UnitMibiBytesStr is unit string for megabytes
	UnitMibiBytesStr = "Mi"

	// UnitGibiBytesStr is unit string for gigabytes
	UnitGibiBytesStr = "Gi"
)

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
JackTT - Gopher 🇻🇳