yaml

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2022 License: Apache-2.0 Imports: 3 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 Print added in v0.0.2

func Print(v interface{})

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(t bool) ConfigFunc

Jump to

Keyboard shortcuts

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