value

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interface added in v0.8.0

type Interface interface {
	Get(...interface{}) Interface
	Value() interface{}
	Comment() string
	SetComment(string)
	Nodes() []Node
}

func New

func New(in interface{}) Interface

type List added in v0.8.0

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

func (*List) Comment added in v0.8.0

func (v *List) Comment() string

func (*List) Get added in v0.8.0

func (v *List) Get(path ...interface{}) Interface

func (*List) Nodes added in v0.8.0

func (v *List) Nodes() []Node

func (*List) SetComment added in v0.8.0

func (v *List) SetComment(c string)

func (*List) Value added in v0.8.0

func (v *List) Value() interface{}

type Map added in v0.8.0

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

func (*Map) Comment added in v0.8.0

func (v *Map) Comment() string

func (*Map) Get added in v0.8.0

func (v *Map) Get(path ...interface{}) Interface

func (*Map) Keys added in v0.8.0

func (v *Map) Keys() []string

func (*Map) Nodes added in v0.8.0

func (v *Map) Nodes() []Node

func (*Map) SetComment added in v0.8.0

func (v *Map) SetComment(c string)

func (*Map) Value added in v0.8.0

func (v *Map) Value() interface{}

type Node added in v0.8.0

type Node struct {
	Path    []interface{}
	Content Interface
}

func (Node) String added in v0.8.0

func (n Node) String() string

type Scalar added in v0.8.0

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

func (*Scalar) Comment added in v0.8.0

func (v *Scalar) Comment() string

func (*Scalar) Get added in v0.8.0

func (v *Scalar) Get(path ...interface{}) Interface

func (*Scalar) Nodes added in v0.8.0

func (v *Scalar) Nodes() []Node

func (*Scalar) SetComment added in v0.8.0

func (v *Scalar) SetComment(c string)

func (*Scalar) Value added in v0.8.0

func (v *Scalar) Value() interface{}

Jump to

Keyboard shortcuts

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