lxd: github.com/lxc/lxd/shared/units Index | Files

package units

import "github.com/lxc/lxd/shared/units"

Index

Package Files

units.go

func GetByteSizeString Uses

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 Uses

func ParseBitSizeString(input string) (int64, error)

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

func ParseByteSizeString Uses

func ParseByteSizeString(input string) (int64, error)

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

Package units imports 2 packages (graph) and is imported by 21 packages. Updated 2019-07-04. Refresh now. Tools for package owners.