Documentation ¶
Index ¶
- func Chunkify(items []string, count int) [][]string
- func GetJsonUrl(url string, target any) error
- func LookupValue(p map[string]string, keys ...string) (string, error)
- func ParseConfigFile(path, comment, delim string) (map[string]string, error)
- func PathExists(path string) (bool, error)
- func RandomSort(items []string) []string
- func RunCommand(args []string) (string, error)
- func SplitDelimiterList(items []string, delim string) (map[string]string, error)
- func StringArrayIsSubset(contenders, items []string) ([]string, bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetJsonUrl ¶
GetJsonUrl gets json from a url and decodes into target interface
func LookupValue ¶
lookup a value, return error if not defined for either
func ParseConfigFile ¶
ParseConfigFile parses a simple configuration file, with newlines for each thing, and a starting prefix to determine comma, and some other delimiter to determine key value pairs
func RunCommand ¶
RunCommand runs an executable (name)
func SplitDelimiterList ¶
SplitDelimiterList splits a list of items by an additional delimiter
func StringArrayIsSubset ¶
ArrayContainsString determines if a string is in an array We return an array of invalid names in case the calling function needs
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.