Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ByteFormat ¶
ByteFormat returns a human-readable string representation of a byte count
func DurationFormat ¶
DurationFormat returns a human-readable string representation of nanosecond number
func StringAsBytes ¶
StringAsBytes will convert WHOLE NUMBER stringified byte-storage sizes to the corresponding int64 byte value. Decimals bomb by design. Suffixes above Petabyte are not supported due to int64 constraints. Suffixes must be “[KMGTP]*?B)“. Case-insensitive.
Types ¶
type Number ¶
type Number interface { constraints.Integer | constraints.Float }
Number is an abstraction to support generic numbers as inputs
Click to show internal directories.
Click to hide internal directories.