Documentation ¶
Index ¶
- func Cmd(command string, args ...string) (stdout string, stderr string)
- func CsvUTF16ToSlice(csv_path string) ([][]string, error)
- func ExtractFileNameFromHref(href string) string
- func FilterStringSlice(ss []string, test func(string) bool) (ret []string)
- func FirstWordInFile(file_path string) (word string, err error)
- func GenericParseVersion(s string) string
- func GetCallerFunctionName() string
- func Intersection(a, b []string) (c []string)
- func IsStringInSlice(a string, list []string) bool
- func KeysOfMap(m map[string]string) []string
- func MapToString(m map[string]string) string
- func PrefixOfAll(sl []string) (string, error)
- func ReadFromURL(url string) ([]byte, error)
- func RemoveStringFromSlice(s []string, r string) []string
- func StringToLinesSlice(s string) []string
- func UniqueNonEmptyElementsOfSlice(s []string) []string
- func Unzip(src, dest string) error
- func YamlToDowncaseFlatMap(yamldata []byte) (map[string]string, error)
- func YamlToFlatMap(yamldata []byte) (map[string]string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CsvUTF16ToSlice ¶
func ExtractFileNameFromHref ¶
func FilterStringSlice ¶
Filter a slice of strings. Use an anonymous function as selector, e.g.: func(s string) bool { return strings.HasPrefix(s, "foo_") && len(s) <= 7 }
func FirstWordInFile ¶
func GenericParseVersion ¶
func GetCallerFunctionName ¶
func GetCallerFunctionName() string
func Intersection ¶ added in v1.0.2
func IsStringInSlice ¶
func MapToString ¶
func PrefixOfAll ¶
func ReadFromURL ¶
func RemoveStringFromSlice ¶
func StringToLinesSlice ¶
func YamlToDowncaseFlatMap ¶
Only downcase the keys, not the values
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.