yml

package
v0.77.5 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDocument

func NewDocument() *yaml.Node

func NewMap

func NewMap() *yaml.Node

func NewSlice

func NewSlice() *yaml.Node

func ValueNode

func ValueNode(value interface{}) *yaml.Node

Types

type Node

type Node yaml.Node

func (*Node) Append

func (n *Node) Append(value interface{})

func (*Node) Interface

func (n *Node) Interface() interface{}

func (*Node) Items

func (n *Node) Items(callback func(index int, node *Node) error) error

func (*Node) Lookup

func (n *Node) Lookup(name string) *Node

func (*Node) Pairs

func (n *Node) Pairs(callback func(key string, node *Node) error) error

func (*Node) Put

func (n *Node) Put(key string, value interface{})

type Nodes

type Nodes []*yaml.Node

func (Nodes) Append

func (n Nodes) Append(key, values string) []*yaml.Node

func (Nodes) AppendScalar

func (n Nodes) AppendScalar(key string) []*yaml.Node

func (Nodes) Filter

func (n Nodes) Filter(names map[string]bool) []*yaml.Node

func (Nodes) FilterNode

func (n Nodes) FilterNode(name string) []*yaml.Node

func (Nodes) LookupNode

func (n Nodes) LookupNode(name string) *yaml.Node

func (Nodes) LookupNodeValue

func (n Nodes) LookupNodeValue(name string) string

func (Nodes) LookupValueNode

func (n Nodes) LookupValueNode(name string) *yaml.Node

func (Nodes) Map

func (n Nodes) Map() (*yaml.Node, error)

Jump to

Keyboard shortcuts

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