Versions in this module Expand all Collapse all v0 v0.28.4 Jan 1, 2020 v0.28.3 Dec 27, 2019 v0.28.3-rc-crdb Dec 19, 2019 v0.28.2 Dec 18, 2019 v0.28.1 Dec 17, 2019 v0.28.0 Dec 17, 2019 v0.27.1 Dec 11, 2019 v0.27.1-rc-crdb Dec 5, 2019 v0.27.0 Dec 10, 2019 v0.27.0-rc-crdb Dec 5, 2019 v0.26.3 Nov 25, 2019 v0.26.2 Nov 20, 2019 v0.26.1 Nov 20, 2019 v0.26.0 Nov 19, 2019 Changes in this version + func FormatBytes(bytes int64) string + func ParseString(s string) (int64, error) + type Size int64 + const B + const EB + const EiB + const GB + const GiB + const KB + const KiB + const MB + const MiB + const PB + const PiB + const TB + const TiB + func (Size) Type() string + func (size *Size) Set(s string) error + func (size Size) Base10String() string + func (size Size) Base2String() string + func (size Size) EB() float64 + func (size Size) EiB() float64 + func (size Size) Float64() float64 + func (size Size) GB() float64 + func (size Size) GiB() float64 + func (size Size) Int() int + func (size Size) Int32() int32 + func (size Size) Int64() int64 + func (size Size) KB() float64 + func (size Size) KiB() float64 + func (size Size) MB() float64 + func (size Size) MiB() float64 + func (size Size) PB() float64 + func (size Size) PiB() float64 + func (size Size) String() string + func (size Size) TB() float64 + func (size Size) TiB() float64 + type Sizes struct + Custom []Size + Default []Size + func (sizes *Sizes) Set(s string) error + func (sizes Sizes) Sizes() []Size + func (sizes Sizes) String() string