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 ConfigFunc ¶
type ConfigFunc = func(config *Config)
func WithCleanup ¶
func WithCleanup(t bool) ConfigFunc
Click to show internal directories.
Click to hide internal directories.