yaml

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeepCopyYaml

func DeepCopyYaml(node *yaml.Node) *yaml.Node

DeepCopyYaml creates a deep copy of YAML

func GetYamlValue

func GetYamlValue(node *yaml.Node, path []string) *yaml.Node

GetYamlValue gets a value from a YAML node by path

func KeyExists

func KeyExists(node *yaml.Node, path []string) bool

KeyExists checks if a key exists in a YAML node

func RemoveYamlValue

func RemoveYamlValue(node *yaml.Node, path []string)

RemoveYamlValue removes a value from a YAML node by path

func SetYamlValue

func SetYamlValue(node *yaml.Node, path []string, value string)

SetYamlValue sets a value in a YAML node by path

func YamlEqual

func YamlEqual(a, b *yaml.Node) bool

YamlEqual checks if two YAML nodes are equal

func YamlToString

func YamlToString(input *yaml.Node) string

YamlToString converts a YAML node to a string

Types

This section is empty.

Jump to

Keyboard shortcuts

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