【文件属性】:
文件名称:gojson
文件大小:5KB
文件格式:ZIP
更新时间:2021-03-20 03:08:05
Go
gojson
从示例json创建Json-Interface结构
安装
go install
例子
从给定的输入testdata/example.json :
{
" name " : " Entitiy " ,
" number " : 3 ,
" weight " : 4.3 ,
" timestamp " : " 2019-11-12T14:08:00Z " ,
" children " : {},
" vendor " : {
" name " : " Supervendor " ,
" url " : " http://www.vendor.com " ,
" added " : " 2019-11-12T14:08:00Z " ,
" priority " : 12
},
" nullvalue " : null
【文件预览】:
gojson-master
----go.mod(47B)
----main.go(1KB)
----testdata()
--------example.go(783B)
--------input.json(2KB)
--------example.json(272B)
----convert_test.go(497B)
----README.md(1KB)
----convert.go(2KB)
----.gitignore(287B)