1 Star 0 Fork 0

llakcs / agile-go

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
xml.go 432 Bytes
一键复制 编辑 原始数据 按行查看 历史
llakcs 提交于 2024-01-31 16:54 . 第一次提交
package xml
import (
"encoding/xml"
"gitee.com/llakcs/agile-go/encoding"
)
const Name = "xml"
func init() {
encoding.RegisterCodec(codec{})
}
// codec is a Codec implementation with xml.
type codec struct{}
func (codec) Marshal(v interface{}) ([]byte, error) {
return xml.Marshal(v)
}
func (codec) Unmarshal(data []byte, v interface{}) error {
return xml.Unmarshal(data, v)
}
func (codec) Name() string {
return Name
}
1
https://gitee.com/llakcs/agile-go.git
git@gitee.com:llakcs/agile-go.git
llakcs
agile-go
agile-go
v1.2.0

搜索帮助