Documentation ¶
Index ¶
- func ArrayContains(array []string, str string) bool
- func ArrayContainsPrefix(array []string, str string) bool
- func FilePathExists(path string) (bool, error)
- func KernelVersionInt(version string) (int64, error)
- func PrettyString(v interface{}) (string, error)
- func RemoveFromArray(array []string, rem string) []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ArrayContains ¶
ArrayContains returns true if str is an element of array.
func ArrayContainsPrefix ¶
ArrayContainsPrefix returns true if str is prefixed with any element of array.
func FilePathExists ¶
FilePathExists returns true if path exists, false if non-existent.
func KernelVersionInt ¶
KernelVersionInt takes a kernel version as a string and returns the integer value
func PrettyString ¶
PrettyString formats v as a string for logging purposes.
func RemoveFromArray ¶
RemoveFromArray returns array without the element rem if it is present.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.