Versions in this module Expand all Collapse all v2 v2.3.0 May 29, 2020 Changes in this version + func Marshal(in interface{}) (out []byte, err error) + func Unmarshal(in []byte, out interface{}) (err error) + func UnmarshalStrict(in []byte, out interface{}) (err error) + type Decoder struct + TagResolver TagResolver + func NewDecoder(r io.Reader) *Decoder + func (dec *Decoder) Decode(v interface{}) (err error) + func (dec *Decoder) SetStrict(strict bool) + func (dec *Decoder) SetTagResolver(TagResolver TagResolver) + type Encoder struct + func NewEncoder(w io.Writer) *Encoder + func (e *Encoder) Close() (err error) + func (e *Encoder) Encode(v interface{}) (err error) + type IsZeroer interface + IsZero func() bool + type MapItem struct + Key interface{} + Value interface{} + type MapSlice []MapItem + type Marshaler interface + MarshalYAML func() (interface{}, error) + type TagResolver func(tag string, out reflect.Value) (newout reflect.Value, unmarshaled, good bool) + type TypeError struct + Errors []string + func (e *TypeError) Error() string + type Unmarshaler interface + UnmarshalYAML func(unmarshal func(interface{}) error) error Other modules containing this package github.com/shawnjian/yaml