Versions in this module Expand all Collapse all v1 v1.1.1 Oct 13, 2016 Changes in this version + const B + const GB + const KB + const MB + const PB + const TB + var BytesizeRegexp = regexp.MustCompile(`(?i)^\s*(\-?[\d\.]+)\s*([KMGTP]?B|[BKMGTP]|)\s*$`) + var ErrBadBytesize = errors.New("invalid byte size") + var ErrBadBytesizeUnit = errors.New("invalid byte size unit") + func MustParse(s string) int64 + func Parse(s string) (int64, error)