yaml

package
v1.9.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 19, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var KeyTransform = cases.ToLowerCamelCase

nolint:gochecknoglobals

Functions

func Marshal

func Marshal(v any) ([]byte, error)

func Unmarshal

func Unmarshal(data []byte, output any) error

func UnmarshalToMap added in v1.7.0

func UnmarshalToMap(data []byte) (map[string]any, error)

Types

type Decoder added in v1.7.0

type Decoder struct {
	// contains filtered or unexported fields
}

func NewDecoder

func NewDecoder(r io.Reader) *Decoder

func (*Decoder) Decode added in v1.7.0

func (d *Decoder) Decode(v any) error

type Encoder added in v1.7.0

type Encoder struct {
	// contains filtered or unexported fields
}

func NewEncoder

func NewEncoder(w io.Writer) *Encoder

func (*Encoder) Encode added in v1.7.0

func (e *Encoder) Encode(v any) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL