yaml

package
v0.10.3 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2023 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadBytes added in v0.10.0

func LoadBytes(b []byte, c interface{}) error

func LoadFile

func LoadFile(filename string, c interface{}) error

func LoadReader

func LoadReader(f io.Reader, c interface{}) error

func LoadString added in v0.10.0

func LoadString(s string, c interface{}) error

YAML

func WriteFile added in v0.8.0

func WriteFile(filename string, c interface{}, filemode os.FileMode) (int64, error)

func WriteTo

func WriteTo(f io.Writer, c interface{}) (int64, error)

Types

type Decoder added in v0.9.0

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

func NewDecoder added in v0.9.0

func NewDecoder(r io.Reader) *Decoder

func NewStringDecoder added in v0.10.0

func NewStringDecoder(s string) *Decoder

func (*Decoder) Decode added in v0.9.0

func (dec *Decoder) Decode(v interface{}) (err error)

func (*Decoder) KnownFields added in v0.9.0

func (dec *Decoder) KnownFields(enable bool)

Jump to

Keyboard shortcuts

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