Versions in this module Expand all Collapse all v0 v0.1.0 Sep 26, 2024 v0.0.9 Sep 1, 2024 v0.0.7 Aug 4, 2024 v0.0.5 Jul 18, 2024 v0.0.3 Jul 3, 2024 Changes in this version + var Format = "%.2f" + var LongUnits = false + type ByteSize uint64 + const B + const EB + const GB + const KB + const MB + const PB + const TB + func New(s float64) ByteSize + func Parse(s string) (ByteSize, error) + func (b *ByteSize) Get() interface{} + func (b *ByteSize) Set(s string) error + func (b *ByteSize) Type() string + func (b *ByteSize) UnmarshalText(text []byte) error + func (b ByteSize) Format(format string, unit string, longUnits bool) string + func (b ByteSize) String() string