Documentation ¶
Index ¶
- func LowerCase()
- func MustParse(s string) int64
- func Parse(s string) (int64, error)
- func ParseBytesPerKB(s string, bytesPerKB int64) (int64, error)
- func ToPrecision(n, p float64) float64
- func ToString(n int64) string
- func ToStringSig(n int64, sig float64) string
- func ToStringSigBytesPerKB(n int64, sig, bytesPerKB float64) string
- func ToggleCase()
- func UpperCase()
- type Bytes
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseBytesPerKB ¶
ParseScale a string into a byte count with a specific scale (defaults to 1000)
func ToPrecision ¶
A Go implementation of JavaScript's Math.toPrecision
func ToStringSig ¶
Converts a byte count into a byte string
func ToStringSigBytesPerKB ¶
Converts a byte count into a byte string
Types ¶
Click to show internal directories.
Click to hide internal directories.