Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ResolveMapKey ¶
func ResolveMapKey(m map[interface{}]interface{}, key string) interface{}
ResolveMapKey looks up key in m, trying it as a direct lookup, then by splitting on ">" and treating each element as a sub-key to look up.
func SplitHierarchyKey ¶
SplitHierarchyKey splits a key on > into a key path.
Types ¶
type YAML ¶
type YAML struct {
YAML interface{}
}
YAML represents a YAML document.
func ParseBytes ¶
ParseBytes parses a []byte into a YAML document.
func (YAML) Key ¶
Key gets the value with the given key, treating ">"-separated keys as nested objects to descend into.
func (YAML) StringSlice ¶
StringSlice gets the string slice at key
Click to show internal directories.
Click to hide internal directories.