Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromBin ¶
FromBin decodes from the binary format if the gob is nil, the struct is nil and the error also
func HumanReadableSize ¶
HumanReadableSize return sizes in human readable format (e.g., 1K 234M 2G) If the size is negative, it returns an empty string. Take an int64 return a string
func PathIsValid ¶
PathIsValid checks if the given path is valid. It checks for the Linux max length for NAME_MAX < 255 bytes and PATH_MAX < 4096. It must not contain "..", "//" or a nil byte and not start with a ".".
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.