yaml

package
v1.6.2 Latest Latest
Warning

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

Go to latest
Published: May 2, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const FullDateFormat = time.RFC3339Nano

Variables

This section is empty.

Functions

func Marshal

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

func NewDecoder

func NewDecoder(r io.Reader) *yaml.Decoder

func NewEncoder

func NewEncoder(w io.Writer) *yaml.Encoder

func Unmarshal

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

Types

type RawMessage

type RawMessage []byte

func (*RawMessage) MarshalYAML

func (r *RawMessage) MarshalYAML() (any, error)

func (*RawMessage) UnmarshalYAML

func (r *RawMessage) UnmarshalYAML(value *yaml.Node) error

Jump to

Keyboard shortcuts

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