yaml

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Marshal = yaml.Marshal

	NewEncoder = yaml.NewEncoder
	NewDecoder = yaml.NewDecoder
)

Functions

func MustMarshal

func MustMarshal(v interface{}) []byte

func MustMarshalToString

func MustMarshalToString(v interface{}) string

func Unmarshal

func Unmarshal(bs []byte, v interface{}, opts ...ConfigFunc) error

func UnmarshalFromString

func UnmarshalFromString(s string, v interface{}, opts ...ConfigFunc) error

Types

type Config

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

type ConfigFunc

type ConfigFunc = func(config *Config)

func WithCleanup

func WithCleanup() ConfigFunc

Jump to

Keyboard shortcuts

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