Versions in this module Expand all Collapse all v0 v0.4.6 Apr 24, 2023 v0.4.5 Apr 12, 2023 v0.4.4 Apr 10, 2023 v0.4.3 Mar 27, 2023 Changes in this version + func Marshal(in any) (out []byte, err error) + func Unmarshal(in []byte, out any) (err error) + type Decoder struct + func NewDecoder(r io.Reader) *Decoder + func (dec *Decoder) Decode(v any) (err error) + func (dec *Decoder) KnownFields(enable bool) + type DuplicateKeyError struct + First *Node + Second *Node + func (d *DuplicateKeyError) Error() string + type Encoder struct + func NewEncoder(w io.Writer) *Encoder + func (e *Encoder) Close() (err error) + func (e *Encoder) Encode(v any) (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 + func (s Kind) String() string + type MarshalError struct + Msg string + func (s *MarshalError) Error() string + type Marshaler interface + MarshalYAML func() (any, 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 any) (err error) + func (n *Node) Encode(v any) (err error) + func (n *Node) EncodeJSON(e *jx.Encoder) 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 + func (s Style) String() string + type SyntaxError struct + Column int + Line int + Msg string + Offset int + func (s *SyntaxError) Error() string + type TypeError struct + Group error + func (e *TypeError) Error() string + func (e *TypeError) Unwrap() error + type UnknownFieldError struct + Field string + Type reflect.Type + func (d *UnknownFieldError) Error() string + type UnmarshalError struct + Err error + Node *Node + Type reflect.Type + func (s *UnmarshalError) Error() string + func (s *UnmarshalError) Unwrap() error + type Unmarshaler interface + UnmarshalYAML func(value *Node) error v0.4.3-alpha.1 Mar 27, 2023 v0.4.3-alpha.0 Mar 27, 2023