bytes

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidNumberFormat = errors.New("invalid number format")
	ErrUnknownUnit         = errors.New("unknown unit")
	ErrInvalidSizeFormat   = errors.New("invalid size format")
)

Functions

This section is empty.

Types

type Size

type Size uint64
const (
	B  Size = 1
	KB Size = 1 << (10 * iota)
	MB
	GB
	TB
	PB
	EB
)

func ParseSize

func ParseSize(sizeStr string) (Size, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳