tools

package
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 7, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ArrayContains

func ArrayContains(array []string, str string) bool

ArrayContains returns true if str is an element of array.

func ArrayContainsPrefix

func ArrayContainsPrefix(array []string, str string) bool

ArrayContainsPrefix returns true if str is prefixed with any element of array.

func FilePathExists

func FilePathExists(path string) (bool, error)

FilePathExists returns true if path exists, false if non-existent.

func KernelVersionInt

func KernelVersionInt(version string) (int64, error)

KernelVersionInt takes a kernel version as a string and returns the integer value

func PrettyString

func PrettyString(v interface{}) (string, error)

PrettyString formats v as a string for logging purposes.

func RemoveFromArray

func RemoveFromArray(array []string, rem string) []string

RemoveFromArray returns array without the element rem if it is present.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL