1 Star 0 Fork 0

TimAndy / GoMybatis

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
XmlCreate_test.go 628 Bytes
一键复制 编辑 原始数据 按行查看 历史
zxj 提交于 2020-02-11 18:13 . fix #[40] output field name
package GoMybatis
import (
"testing"
"time"
)
type TestActivity struct {
Id string `json:"id,omitempty"`
Uuid string `json:"uuid"`
Name string `json:"name"`
PcLink string `json:"pc_link"`
H5Link string `json:"h5_link"`
Remark string `json:"remark"`
Version int `json:"version"`
CreateTime time.Time `json:"create_time"`
DeleteFlag int `json:"delete_flag"`
}
func TestCreateDefaultXml(t *testing.T) {
var xml = CreateXml("biz_activity", TestActivity{})
println(string(xml))
}
func TestSnakeString(t *testing.T) {
println(SnakeString("pcLink"))
}
Go
1
https://gitee.com/timandy/GoMybatis.git
git@gitee.com:timandy/GoMybatis.git
timandy
GoMybatis
GoMybatis
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891