Documentation ¶
Index ¶
Constants ¶
View Source
const ( B = 1 << (10 * iota) KB MB GB TB PB )
Variables ¶
View Source
var ( ErrBadBytesize = errors.New("invalid byte size") ErrBadBytesizeUnit = errors.New("invalid byte size unit") )
View Source
var (
BytesizeRegexp = regexp.MustCompile(`(?i)^\s*(\-?[\d\.]+)\s*([KMGTP]?B|[BKMGTP]|)\s*$`)
)
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.