Versions in this module Expand all Collapse all v1 v1.0.1000 Aug 14, 2023 Changes in this version + var BytesizeRegexp = regexp.MustCompile(`(?i)^\s*(\-?[\d\.]+)\s*([KMGTPEZY]?B|[BKMGTPEZY]|)\s*$`) + var ErrText = "illegal bytesize text" + func ParseByteSize(val string) (int, error) + type ByteSize float64 + const B + const EB + const GB + const KB + const MB + const PB + const TB + const YB + const ZB + func Parse(sizeText []byte) (ByteSize, error) + func (b ByteSize) String() string