json
嘟嘟忍者
这个作者很懒,什么都没留下…
展开
-
Golang json字符串校验
golang json字符串有效性校验github代码地址import "github.com/ChengjinWu/gojson"func Test_Validator(t *testing.T) { data := `{"id":524042,"name":"酷旅-mob-otv-2","male":true,"other":null}` err := gojso原创 2018-11-12 18:54:47 · 4610 阅读 · 1 评论 -
golang json字符串转Golang对象
golang json字符串转Golang对象github代码地址一、普通json字符串转Golang对象import "github.com/ChengjinWu/gojson"func Test_json(t *testing.T) { data := `{"id":524042,"name":"酷旅-mob-otv-2","male":true,"other"原创 2018-11-12 19:05:56 · 7103 阅读 · 0 评论 -
Golang json字符串转Golang代码以及get、set方法
Golang json字符串转Golang代码GitHub源代码地址json字符串转Golang代码以及get、set方法import "github.com/ChengjinWu/gojson"func Test_json_array111(t *testing.T) { data := `{ "id": [ -524042.5, 23123144444555...原创 2018-11-12 19:08:11 · 1960 阅读 · 0 评论