yaml

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NONE   = 0
	VALUE  = 1
	ARRAY  = 2
	OBJECT = 3
)

Variables

This section is empty.

Functions

func Unmarshal

func Unmarshal(content []byte, dest interface{}, translate bool) bool

Types

type YAMLNode

type YAMLNode struct {
	// contains filtered or unexported fields
}

func (*YAMLNode) Child

func (node *YAMLNode) Child(name string) *YAMLNode

func (YAMLNode) Children

func (node YAMLNode) Children() []YAMLNode

func (*YAMLNode) Create

func (node *YAMLNode) Create(path string) *YAMLNode

func (*YAMLNode) Get

func (node *YAMLNode) Get(path string) *YAMLNode

func (YAMLNode) IsArray

func (node YAMLNode) IsArray() bool

func (YAMLNode) IsObject

func (node YAMLNode) IsObject() bool

func (YAMLNode) IsValue

func (node YAMLNode) IsValue() bool

func (*YAMLNode) Load

func (node *YAMLNode) Load(path string) bool

func (YAMLNode) Name

func (node YAMLNode) Name() string

func (YAMLNode) Object

func (node YAMLNode) Object(data interface{}, translate bool)

func (*YAMLNode) Parse

func (node *YAMLNode) Parse(content string) bool

func (*YAMLNode) SetValue

func (node *YAMLNode) SetValue(data interface{})

func (YAMLNode) String

func (node YAMLNode) String(indent ...string) string

func (YAMLNode) Value

func (node YAMLNode) Value() string

Jump to

Keyboard shortcuts

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