units

package
v6.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

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