IsMap returns true if the YAML node is a map.
(node *yaml.Node)
| 41 | |
| 42 | // IsMap returns true if the YAML node is a map. |
| 43 | func (YAMLHelper) IsMap(node *yaml.Node) bool { |
| 44 | return isTypeTag(node, yamlMap) && len(node.Content)%2 == 0 |
| 45 | } |
| 46 | |
| 47 | // RangeMap iterates over the map and calls the provided function for each key-value pair. If the |
| 48 | // function returns false, the iteration will stop. |