Versions in this module Expand all Collapse all v0 v0.1.0 Apr 7, 2019 Changes in this version + const TreeSeparator + var KeepAllRule = KeepAllRuleT + var KeepRule = KeepRuleT + var SkipRule = SkipRuleT + func Advance(s string, t StringToken) bool + func AsArguments(s string) []string + func Extract(src []string, rules ...interface{}) ([]string, error) + func ExtractSep(path, separator string, rules ...interface{}) ([]string, error) + func FindTreeInt(path string, root interface{}) (int, bool) + func FindTreeString(path string, root interface{}) (string, bool) + func FindTreeValue(_path string, _tree interface{}) (interface{}, bool) + func Path(_path string, opts PathOpts, rules ...interface{}) ([]string, error) + func PathOne(path string, opts PathOpts, rules ...interface{}) string + func PathTwo(path string, opts PathOpts, rules ...interface{}) (string, string) + func ReadJsonFile(filename string) (interface{}, error) + func ReplacePairs(s string, pairs ...interface{}) string + func SetTreeInt(path string, value int, tree interface{}) (interface{}, error) + func SetTreeString(path, value string, tree interface{}) (interface{}, error) + func SolveInt(s string) (int, error) + func TreeBool(path string, root interface{}, defaultValue bool) bool + func TreeInt(path string, root interface{}, defaultValue int) int + func TreeString(path string, root interface{}, defaultValue string) string + func TreeStringSlice(path string, root interface{}) []string + func TreeValue(path string, tree interface{}) (interface{}, error) + type KeepAllRuleT struct + type KeepRuleT struct + type PathOpts struct + Separator string + type ReplaceRuleT struct + With string + type SkipRuleT struct + type StringMatch interface + Matches func(cmp string) bool + func NewMqttStringMatch(_pattern string) StringMatch + type StringToken interface + Empty func() bool + Next func() (string, error) + Remainder func() ([]string, error) + func NewStringToken(tokens ...string) StringToken