json2gostruct

command module
v0.0.0-...-bd96cb4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 22, 2019 License: MIT Imports: 6 Imported by: 0

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

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL