Versions in this module Expand all Collapse all v0 v0.1.0 Apr 14, 2024 v0.0.10 Apr 14, 2024 Changes in this version + const B + const EB + const GB + const KB + const MB + const PB + const TB + var ErrBits = errors.New("unit with capital unit prefix and lower case unit (b) - bits, not bytes") + type Size uint64 + func MustParse(t []byte) Size + func MustParseString(s string) Size + func Parse(t []byte) (Size, error) + func ParseString(s string) (Size, error) + func (b *Size) UnmarshalText(t []byte) error + func (b Size) Bytes() uint64 + func (b Size) EBytes() float64 + func (b Size) GBytes() float64 + func (b Size) KBytes() float64 + func (b Size) MBytes() float64 + func (b Size) MachineString() string + func (b Size) MarshalText() ([]byte, error) + func (b Size) PBytes() float64 + func (b Size) String() string + func (b Size) TBytes() float64