datasize

package
v0.0.0-...-e49a3f0 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BitsInByte          = 8
	BytesInKiloByte     = 1000
	KiloBytesInMegaByte = 1000
	MegaBytesInGigaByte = 1000
	GigaBytesInTeraByte = 1000

	Bit      Size = 1
	Byte     Size = 8 * Bit
	KiloByte Size = 1000 * Byte
	MegaByte Size = 1000 * KiloByte
	GigaByte Size = 1000 * MegaByte
	TeraByte Size = 1000 * GigaByte
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Size

type Size int

func (Size) InBits

func (s Size) InBits() Size

func (Size) InBytes

func (s Size) InBytes() Size

func (Size) InGigaBytes

func (s Size) InGigaBytes() Size

func (Size) InKiloBytes

func (s Size) InKiloBytes() Size

func (Size) InMegaBytes

func (s Size) InMegaBytes() Size

func (Size) InTeraBytes

func (s Size) InTeraBytes() Size

Jump to

Keyboard shortcuts

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