golang: 根据json生成go源文件

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 .

posted on 2016-12-22 16:04  拥剑公子  阅读(392)  评论(0编辑  收藏  举报

导航