Documentation
¶
Index ¶
- Variables
- func CommaList(strs []string) (s string)
- func Exists(name string) bool
- func FindFile(PathOfInput, fn string, sp []string) (rv string)
- func GetItemN(line string, nthItem int) (name string)
- func GetItemSet(line string, nthItem int) (set []string)
- func InArray(lookFor string, inArr []string) bool
- func JsonStringToString(s string) (theJSON map[string]string, err error)
- func JsonStringToStringString(s string) (theJSON map[string]map[string]string, err error)
- func KeysSorted(sub map[string]string) (strs []string)
- func ParseLineIntoWords(line string) []string
- func ParseNameValueOpt(s string) (name, value string, err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidNameValueOpt = errors.New("Invalid option, should be Name or Name=Value")
Functions ¶
func GetItemSet ¶
Pull items out of a line of text, parse into words and then return the nth... !! marker.
func JsonStringToString ¶
Parse JSON string into map[string]string
func JsonStringToStringString ¶
Parse JSON string into map[string]map[string]string
func KeysSorted ¶
Sort the keys on a map and return it as an slice of strings
func ParseLineIntoWords ¶
Parse a line of text into words
func ParseNameValueOpt ¶
Parse a name or name=value - if value is not specified then "on" is used.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.