Documentation
¶
Overview ¶
Package expand provides YAML key delimiter expansion for yaml.Node trees. It walks mapping nodes and expands unquoted keys containing a configurable delimiter into nested map structures, modeled after Viper's deepSearch().
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func KeyDelimiters ¶
KeyDelimiters walks a yaml.Node tree and expands unquoted mapping keys containing the delimiter into nested mapping structures. Quoted keys (single or double) are preserved as literal keys.
For example, with delimiter ".", the unquoted key "metadata.component: vpc-base" becomes the nested structure "metadata: { component: vpc-base }".
This is modeled after Viper's deepSearch() approach (viper@v1.21.0/util.go).
Types ¶
This section is empty.