Versions in this module Expand all Collapse all v1 v1.4.0 Oct 24, 2023 Changes in this version + func Marshal(in interface{}) (out []byte, err error) + func Unmarshal(in []byte, out interface{}) (err error) + type Decoder struct + func NewDecoder(r io.Reader) *Decoder + func (dec *Decoder) Decode(v interface{}) (err error) + func (dec *Decoder) KnownFields(enable bool) + type Encoder struct + func NewEncoder(w io.Writer) *Encoder + func (e *Encoder) Close() (err error) + func (e *Encoder) CompactSeqIndent() + func (e *Encoder) DefaultSeqIndent() + func (e *Encoder) Encode(v interface{}) (err error) + func (e *Encoder) SetIndent(spaces int) + type IsZeroer interface + IsZero func() bool + type Kind uint32 + const AliasNode + const DocumentNode + const MappingNode + const ScalarNode + const SequenceNode + type Marshaler interface + MarshalYAML func() (interface{}, error) + type Node struct + Alias *Node + Anchor string + Column int + Content []*Node + FootComment string + HeadComment string + Kind Kind + Line int + LineComment string + Style Style + Tag string + Value string + func (n *Node) Decode(v interface{}) (err error) + func (n *Node) Encode(v interface{}) (err error) + func (n *Node) IsZero() bool + func (n *Node) LongTag() string + func (n *Node) SetString(s string) + func (n *Node) ShortTag() string + type Style uint32 + const DoubleQuotedStyle + const FlowStyle + const FoldedStyle + const LiteralStyle + const SingleQuotedStyle + const TaggedStyle + type TypeError struct + Errors []string + func (e *TypeError) Error() string + type Unmarshaler interface + UnmarshalYAML func(value *Node) error