Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RenameYamlKey ¶
takes a yaml document in bytes, a path to a key, and a new name for the key. Will rename the key to the new name if it exists, and do nothing otherwise.
func UpdateYamlValue ¶
takes a yaml document in bytes, a path to a key, and a value to set. The value must be a scalar.
func Walk ¶ added in v0.42.0
Traverses a yaml document, calling the callback function for each node. The callback is allowed to modify the node in place, in which case it should return true. The function returns the original yaml document if none of the callbacks returned true, and the modified document otherwise.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.