Documentation
¶
Index ¶
- func AreFilterStringsInTags(strs []string) bool
- func DoesElementHaveCommandTag(element *Element) bool
- func GetChildKeysAsString(element *Element) string
- func MainRecurseMap(m map[interface{}]interface{}, parent *Element) error
- func PostProcess(element *Element, flatParent *Element)
- func RecurseMap(m map[interface{}]interface{}, parent *Element)
- func RecurseSlice(lst []interface{}, parent *Element)
- func SimpleElementToMap(element *Element) map[interface{}]interface{}
- func TruncateString(str string, length int) string
- type Element
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AreFilterStringsInTags ¶
func GetChildKeysAsString ¶
func MainRecurseMap ¶
main entry point for the parser
func PostProcess ¶
func RecurseMap ¶
func RecurseMap(m map[interface{}]interface{}, parent *Element)
func RecurseSlice ¶
func RecurseSlice(lst []interface{}, parent *Element)
func SimpleElementToMap ¶
func SimpleElementToMap(element *Element) map[interface{}]interface{}
func TruncateString ¶
Types ¶
type Element ¶
type Element struct { Content string IsCommand bool Description string Tags []string ChildKeys *[]string Parent *Element ChildrenSorted []*Element Children map[string]*Element }
represents one element in the yaml file that could be a group or a command
func NewFlatParent ¶
func NewFlatParent() *Element
Click to show internal directories.
Click to hide internal directories.