Versions in this module Expand all Collapse all v0 v0.49.0 Apr 15, 2024 v0.48.0 Feb 6, 2024 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 ArrayItem struct + Line int + Value interface{} + type Comment struct + Data string + Line int + func UnmarshalWithComments(in []byte, out interface{}) ([]Comment, error) + type Decoder struct + func NewDecoder(r io.Reader) *Decoder + func (dec *Decoder) Comments() []Comment + func (dec *Decoder) Decode(v interface{}) (err error) + func (dec *Decoder) DocumentStartLine() int + func (dec *Decoder) SetForceMapSlice(useMapSlice bool) + func (dec *Decoder) SetStrict(strict bool) + func (dec *Decoder) SetStrictScalarResolve() + 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{} + Line int + Value interface{} + type MapSlice []MapItem + type Marshaler interface + MarshalYAML func() (interface{}, error) + type TypeError struct + Errors []string + func (e *TypeError) Error() string + type Unmarshaler interface + UnmarshalYAML func(unmarshal func(interface{}) error) error