Documentation ¶ Index ¶ type Encoder func NewEncoder() *Encoder func (e *Encoder) Decode(r io.Reader, v any) error func (e *Encoder) Encode(w io.Writer, v any) error type Marshaller func NewMarshaller() *Marshaller func (m *Marshaller) Marshal(v any) ([]byte, error) func (m *Marshaller) Unmarshal(data []byte, v any) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Encoder ¶ added in v1.282.0 type Encoder struct{} Encoder for yaml. func NewEncoder ¶ added in v1.282.0 func NewEncoder() *Encoder NewEncoder for yaml. func (*Encoder) Decode ¶ added in v1.282.0 func (e *Encoder) Decode(r io.Reader, v any) error func (*Encoder) Encode ¶ added in v1.282.0 func (e *Encoder) Encode(w io.Writer, v any) error type Marshaller ¶ type Marshaller struct{} Marshaller for yaml. func NewMarshaller ¶ func NewMarshaller() *Marshaller NewMarshaller for yaml. func (*Marshaller) Marshal ¶ func (m *Marshaller) Marshal(v any) ([]byte, error) func (*Marshaller) Unmarshal ¶ func (m *Marshaller) Unmarshal(data []byte, v any) error Source Files ¶ View all Source files yaml.go Click to show internal directories. Click to hide internal directories.