units

package
v0.22.1 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromByteSizeString

func FromByteSizeString(sizeString string, minMax ...int64) (size int64, err error)

FromByteSizeString parses the argument sizeString representing byte size and returns the number of bytes or -1 if the sizeString cannot be parsable.

func ToByteSizeString

func ToByteSizeString(size float64) string

ToByteSizeString returns a string that represents the size defined by international standard IEC 80000-13.

func ToHumanSizeStringWithoutUnit added in v0.15.0

func ToHumanSizeStringWithoutUnit(size float64, precision int) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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