memory

package
v0.0.0-...-f57cf1e Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: ISC Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BINARY = 1024
	BYTE   = 1

	KILOBYTE MemoryUnit = BINARY * BYTE
	MEGABYTE            = BINARY * KILOBYTE
	GIGABYTE            = BINARY * MEGABYTE
	TERABYTE            = BINARY * GIGABYTE
)

Variables

This section is empty.

Functions

func IsMemoryUnit

func IsMemoryUnit[T any]() bool

Types

type MemoryUnit

type MemoryUnit float64

func FromAbbreviation

func FromAbbreviation(abbr string) (MemoryUnit, error)

Jump to

Keyboard shortcuts

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