Versions in this module Expand all Collapse all v0 v0.5.0 May 17, 2022 v0.4.0 Apr 23, 2019 v0.3.3 Feb 12, 2018 v0.3.2 Jan 27, 2017 Changes in this version + func HumanSizeWithPrecision(size float64, precision int) string v0.3.1 Jun 13, 2016 v0.3.0 Jan 25, 2016 Changes in this version + type Rlimit struct + Hard uint64 + Soft uint64 + Type int + type Ulimit struct + Hard int64 + Name string + Soft int64 + func ParseUlimit(val string) (*Ulimit, error) + func (u *Ulimit) GetRlimit() (*Rlimit, error) + func (u *Ulimit) String() string v0.2.0 Dec 15, 2015 v0.1.0 Dec 15, 2015 Changes in this version + const GB + const GiB + const KB + const KiB + const MB + const MiB + const PB + const PiB + const TB + const TiB + func BytesSize(size float64) string + func CustomSize(format string, size float64, base float64, _map []string) string + func FromHumanSize(size string) (int64, error) + func HumanDuration(d time.Duration) string + func HumanSize(size float64) string + func RAMInBytes(size string) (int64, error)