Versions in this module Expand all Collapse all v3 v3.3.0 Mar 15, 2023 Changes in this version type TypeError + func (e *TypeError) Unwrap() []error v3.2.0 Dec 12, 2022 Changes in this version type Decoder + func (dec *Decoder) WithHook(h DecoderHook) + type DecoderHook func(path []string, node *Node) v3.1.1 Dec 5, 2022 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 DuplicateMappingKeyError struct + func NewDuplicateMappingKeyError(line, column int, key string, duplicateLine int) *DuplicateMappingKeyError + func (e *DuplicateMappingKeyError) Column() int + func (e *DuplicateMappingKeyError) DuplicateLine() int + func (e *DuplicateMappingKeyError) Error() string + func (e *DuplicateMappingKeyError) Key() string + func (e *DuplicateMappingKeyError) Line() int + type Encoder struct + func NewEncoder(w io.Writer) *Encoder + func (e *Encoder) Close() (err error) + func (e *Encoder) Encode(v interface{}) (err error) + func (e *Encoder) SetIndent(spaces int) + type FieldAlreadySetError struct + func NewFieldAlreadySetError(line, column int, field string, rtype reflect.Type) *FieldAlreadySetError + func (e *FieldAlreadySetError) Column() int + func (e *FieldAlreadySetError) Error() string + func (e *FieldAlreadySetError) Field() string + func (e *FieldAlreadySetError) Line() int + func (e *FieldAlreadySetError) Type() reflect.Type + type InvalidTypeError struct + func NewInvalidTypeError(line, column int, tag string, value string, rtype reflect.Type) *InvalidTypeError + func (e *InvalidTypeError) Column() int + func (e *InvalidTypeError) Error() string + func (e *InvalidTypeError) Line() int + func (e *InvalidTypeError) Tag() string + func (e *InvalidTypeError) Type() reflect.Type + func (e *InvalidTypeError) Value() string + 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 ParserError struct + Line int + Message string + func (e *ParserError) Error() string + type Style uint32 + const DoubleQuotedStyle + const FlowStyle + const FoldedStyle + const LiteralStyle + const SingleQuotedStyle + const TaggedStyle + type TypeError struct + Errors []UnmarshalError + func (e *TypeError) Error() string + type UnknownFieldError struct + func NewUnknownFieldError(line, column int, field string, rtype reflect.Type) *UnknownFieldError + func (e *UnknownFieldError) Column() int + func (e *UnknownFieldError) Error() string + func (e *UnknownFieldError) Field() string + func (e *UnknownFieldError) Line() int + func (e *UnknownFieldError) Type() reflect.Type + type UnmarshalError interface + Column func() int + Line func() int + type Unmarshaler interface + UnmarshalYAML func(value *Node) error Other modules containing this package github.com/conduitio/yaml