Documentation ¶
Overview ¶
Package gyaml provides accessing and converting for YAML content.
Index ¶
- func Decode(content []byte) (map[string]interface{}, error)
- func DecodeTo(value []byte, result interface{}) (err error)
- func Encode(value interface{}) (out []byte, err error)
- func EncodeIndent(value interface{}, indent string) (out []byte, err error)
- func ToJson(content []byte) (out []byte, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EncodeIndent ¶
EncodeIndent encodes `value` to an YAML format content with indent as bytes.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.