Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func QueryNode ¶
func QueryNode(node *yaml.Node, path string) *yaml.Node
QueryNode accepts a node and period-delimited path of segments, searches the list to get a matching node. If a segment matches a list, the next seqment will be treated as an index. If a segment matches a map, the next segment will be treated as the key.
func QueryString ¶
QueryString accepts a node and period-delimited path of segments, searches the list to get a matching node's string value. If a segment matches a list, the next seqment will be treated as an index. If a segment matches a map, the next segment will be treated as the key.
func QueryStringArray ¶
func QueryStringArray(node *yaml.Node) []string
QueryStringArray returns the node's content as an array of strings if the node is a list. Otherwise returns nil.
Types ¶
This section is empty.