yaml

package module
v0.1.0 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

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

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

YAML

func WriteFile

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

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

func NewDecoder

func NewDecoder(r io.Reader) *Decoder

func NewStringDecoder

func NewStringDecoder(s string) *Decoder

func (*Decoder) Decode

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

func (*Decoder) KnownFields

func (dec *Decoder) KnownFields(enable bool)

Jump to

Keyboard shortcuts

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