Documentation ¶
Overview ¶
Package gxml 提供了对 XML 内容的访问和转换功能。
Index ¶
- func Decode(content []byte) (map[string]interface{}, error)
- func DecodeWithoutRoot(content []byte) (map[string]interface{}, error)
- func Encode(m map[string]interface{}, rootTag ...string) ([]byte, error)
- func EncodeWithIndent(m map[string]interface{}, rootTag ...string) ([]byte, error)
- func ToJson(content []byte) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeWithoutRoot ¶
DecodeWithoutRoot 将 `content` 解析为一个映射(map),并返回没有根级别的映射。
func EncodeWithIndent ¶
EncodeWithIndent 将 map `m` 编码为带有缩进的 XML 格式字节内容。 可选参数 `rootTag` 用于指定 XML 根标签。
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.