size

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KiByte = Byte << ((iota + 1) * 10)
	MiByte
	GiByte
	TiByte
	PiByte
	EiByte
)
View Source
const (
	KByte = Byte * 1000
	MByte = KByte * 1000
	GByte = MByte * 1000
	TByte = GByte * 1000
	PByte = TByte * 1000
	EByte = PByte * 1000
)
View Source
const Byte = int64(1)

Variables

This section is empty.

Functions

func FormatBytes

func FormatBytes(value int64) string

func FormatIBytes

func FormatIBytes(value int64) string

func Parse

func Parse(value string) (int64, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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