Documentation
¶
Index ¶
- func ExtractByKey(data []byte, key string, fun func(string)) error
- func FormatDuration(seconds int) string
- func IBytes(s uint64) string
- func IsWritableDir(path string) (err error)
- func MustExpand(path string) string
- func ParseISO8601(s string) (time.Duration, error)
- func RemoveDirs(root string) error
- func SleepContext(ctx context.Context, d time.Duration)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatDuration ¶
func IBytes ¶
IBytes produces a human readable representation of an IEC size.
IBytes(82854982) -> 79 MiB
func IsWritableDir ¶
func MustExpand ¶
func RemoveDirs ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.