Skip to content

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

License

Notifications You must be signed in to change notification settings

dravinbox/json2GoStruct

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published