expand

package
v1.223.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 15, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

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

func KeyDelimiters(node *goyaml.Node, delimiter string)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL