units

package
v0.0.0-...-ff4e629 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: AGPL-3.0, Apache-2.0 Imports: 2 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetByteSizeString

func GetByteSizeString(input int64, precision uint) string

GetByteSizeString takes a number of bytes and precision and returns a human representation of the amount of data.

func GetByteSizeStringIEC

func GetByteSizeStringIEC(input int64, precision uint) string

GetByteSizeStringIEC takes a number of bytes and precision and returns a human representation of the amount of data using IEC units.

func ParseBitSizeString

func ParseBitSizeString(input string) (int64, error)

ParseBitSizeString parses a human representation of an amount of data into a number of bits.

func ParseByteSizeString

func ParseByteSizeString(input string) (int64, error)

ParseByteSizeString parses a human representation of an amount of data into a number of bytes.

Types

This section is empty.

Jump to

Keyboard shortcuts

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