yaml

package
v0.9.1-beta2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Marshal

func Marshal(in interface{}) ([]byte, error)

Marshal serializes the value provided into a YAML document. The structure of the generated document will reflect the structure of the value itself. Maps and pointers (to struct, string, int, etc) are accepted as the in value.

See gopkg.in/yaml.v2 documentation

func NewDecoder

func NewDecoder(r io.Reader) *yaml.Decoder

NewDecoder returns a new decoder that reads from r.

See gopkg.in/yaml.v2 documentation

func Unmarshal

func Unmarshal(in []byte, out interface{}) error

Unmarshal decodes the first document found within the in byte slice and assigns decoded values into the out value.

See gopkg.in/yaml.v2 documentation

Types

This section is empty.

Jump to

Keyboard shortcuts

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