yaml

package
v1.12.5 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Space = 2

	Marshal   = yaml.Marshal
	Unmarshal = yaml.Unmarshal

	NewEncoder = yaml.NewEncoder
	NewDecoder = yaml.NewDecoder
)

Functions

func MarshalIndent added in v1.11.0

func MarshalIndent(v any, space int) ([]byte, error)

func MustMarshal

func MustMarshal(v any) []byte

func MustMarshalIndent added in v1.11.0

func MustMarshalIndent(v any) []byte

func MustMarshalString

func MustMarshalString(v any) string

func MustUnmarshalTo

func MustUnmarshalTo[T any](bs []byte) (m T)

func UnmarshalTo

func UnmarshalTo[T any](bs []byte) (m T, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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