Documentation
¶
Index ¶
- func FmtBytes(bytes uint64) string
- func FmtPretty(v interface{}) string
- func IsPrimitive(p interface{}) bool
- func IsRootUser() bool
- func IsTerminalOutput() bool
- func SplitPathIntoDirectories(p string) []string
- func StringToBytes(sizeString string) (uint64, error)
- func SubDirectories(dirPath string) ([]string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FmtPretty ¶
func FmtPretty(v interface{}) string
FmtPretty converts any interface to JSON with indentation, for use in logging where better readability is required. Errors are ignored.
func IsPrimitive ¶
func IsPrimitive(p interface{}) bool
IsPrimitive takes any variable and returns true if the underlying type is a primitive type
func IsRootUser ¶
func IsRootUser() bool
func IsTerminalOutput ¶
func IsTerminalOutput() bool
func SplitPathIntoDirectories ¶
SplitPathIntoDirectories takes a file path and returns a slice of strings containing the individual directory names that makes up the path
func StringToBytes ¶
func SubDirectories ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.