golang: 根据json生成go源文件

来源:互联网 发布:辐射4灵光优化 编辑:程序博客网 时间:2024/06/06 19:09

https://github.com/ChimeraCoder/gojson

 

$ git clone https://github.com/ChimeraCoder/gojson.git
$ cd gojson
$ go build -o _build/gojson ./gojson
$ cp _build/gojson ~/bin/
$ curl -s https://api.github.com/repos/chimeracoder/gojson | gojson -name=Repository
$ gofmt -w -e -s -l .

原创粉丝点击