yaml

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2017 License: Apache-2.0 Imports: 6 Imported by: 24

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindInt

func FindInt(root Node, path ...string) (int64, bool)

func FindString

func FindString(root Node, path ...string) (string, bool)

Types

type AnnotatedNode

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

func (AnnotatedNode) EquivalentToNode

func (n AnnotatedNode) EquivalentToNode(o Node) bool

func (AnnotatedNode) MarshalYAML

func (n AnnotatedNode) MarshalYAML() (string, interface{})

func (AnnotatedNode) SourceName

func (n AnnotatedNode) SourceName() string

func (AnnotatedNode) Value

func (n AnnotatedNode) Value() interface{}

type Node

type Node interface {
	candiedyaml.Marshaler

	Value() interface{}
	SourceName() string
	EquivalentToNode(Node) bool
}

func Find

func Find(root Node, path ...string) (Node, bool)

func NewNode

func NewNode(value interface{}, sourcePath string) Node

func Parse

func Parse(sourceName string, source []byte) (Node, error)

type NonStringKeyError

type NonStringKeyError struct {
	Key interface{}
}

func (NonStringKeyError) Error

func (e NonStringKeyError) Error() string

Jump to

Keyboard shortcuts

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