Categorygithub.com/dravinbox/json2gostruct
modulepackage
0.0.0-20190522010923-bd96cb4acffb
Repository: https://github.com/dravinbox/json2gostruct.git
Documentation: pkg.go.dev

# README

json2GoStruct

Convert JSON to Go Struct,把json转换为Go的结构体

安装

go get -v github.com/dravinbox/json2GoStruct

快速使用

Web模式

$ json2GoStruct -w

命令行模式


$ cat << EOF >./file.json
{"name": "zry", "Age": 18,"car": { "car_name": "benzi","color": "red" }}
EOF

$ json2GoStruct


指定的json文件路径,指定Struct名称

$ json2GoStruct -f <filePath> -n Dravin

# Packages

No description provided by the author
No description provided by the author