Skip to content

Latest commit

 

History

History
17 lines (13 loc) · 397 Bytes

index.md

File metadata and controls

17 lines (13 loc) · 397 Bytes

gxml

XML数据格式编码解析。

使用方式:

import "gitee.com/johng/gf/g/encoding/gxml"

方法列表:

func Decode(xmlbyte []byte) (map[string]interface{}, error)
func Encode(v map[string]interface{}, rootTag ...string) ([]byte, error)
func EncodeWithIndent(v map[string]interface{}, rootTag ...string) ([]byte, error)
func ToJson(xmlbyte []byte) ([]byte, error)