units

package
v0.0.0-...-a810e79 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2021 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 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