memory

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2024 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Byte Amount = 1
	KB          = 1000 * Byte
	KiB         = 1024 * Byte
	MB   Amount = 1000 * KB
	MiB         = 1024 * KiB
	GB   Amount = 1000 * MB
	GiB         = 1024 * MiB
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Amount

type Amount int64

Amount represents an amount of bytes of memory.

func (*Amount) MarshalJSON

func (x *Amount) MarshalJSON() ([]byte, error)

func (*Amount) UnmarshalJSON

func (x *Amount) UnmarshalJSON(bs []byte) error

Jump to

Keyboard shortcuts

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