Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatSizeToHuman ¶
To human readable byte string like 20M, 18.7K, etc. Valid units:
e: Exabyte p: Petabyte t: Terabyte g: Gigabyte m: Megabyte k: Kilobyte b: Byte
The tesults falls to smallest number >= 1 of the unit.
func ParseSizeFromHuman ¶
Types ¶
type Interval ¶
func MustParseInterval ¶
func (Interval) MarshalYAML ¶
func (*Interval) UnmarshalYAML ¶
type Size ¶
type Size uint64
func MustParseSize ¶
func (Size) MarshalYAML ¶
func (*Size) UnmarshalYAML ¶
Click to show internal directories.
Click to hide internal directories.