Documentation ¶
Overview ¶
包gyaml提供了访问和转换YAML内容的功能。 md5:f1323f1f471201c0
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 将 `value` 编码为带有缩进的 YAML 格式内容,返回字节切片。 md5:08a35501baf3e352
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.