Help us shape the future of Go! Take the 2026 Go Developer Survey

yaml

package
v1.15.0 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2026 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PathToYAML added in v1.10.0

func PathToYAML(path string, val string, serializer Serializer) (map[string]any, error)

Types

type DocumentSplitter

type DocumentSplitter interface {
	WithReader(r io.Reader) DocumentSplitter
	Next() bool
	Err() error
	Bytes() []byte
	Object() runtime.Object
}

func NewDocumentSplitter

func NewDocumentSplitter() DocumentSplitter

type Serializer

type Serializer interface {
	Marshal(o interface{}) ([]byte, error)
	Unmarshal(y []byte, o interface{}, opts ...yaml.JSONOpt) error
}

func NewSerializer

func NewSerializer() Serializer

Jump to

Keyboard shortcuts

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