Documentation ¶
Index ¶
- func AddIndent(src []byte, indent int) (dst []byte)
- func AddOrReplace(src []byte, key string, value any, nodeParent *yaml.Node) ([]byte, error)
- func AddPrefix(src, pre []byte) (dst []byte)
- func AddToEnd(src []byte, key string, value any, path ...string) ([]byte, error)
- func Encode(v any, indent int) ([]byte, error)
- func FindChild(node *yaml.Node, name string) (key, value *yaml.Node)
- func FindParent(src []byte, path ...string) (*yaml.Node, error)
- func FirstChild(node *yaml.Node) *yaml.Node
- func LastChild(node *yaml.Node) *yaml.Node
- func LineOffset(b []byte, line int) (offset int)
- func Patch(src []byte, key string, value any, path ...string) ([]byte, error)
- func Unmarshal(in []byte, out interface{}) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddOrReplace ¶
func FindChild ¶
func FindChild(node *yaml.Node, name string) (key, value *yaml.Node)
FindChild - search and return YAML key/value pair for current Node
func FindParent ¶
FindParent - return YAML Node from path of keys (tree)
func FirstChild ¶
func FirstChild(node *yaml.Node) *yaml.Node
func LineOffset ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.