You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
Assuming$GOPATH/bin is in yourPATH, you can now invokegojson directly.
API Installation
$ go get github.com/ChimeraCoder/gojson/gojson
Development
$ git clone https://github.com/ChimeraCoder/gojson.git$ cd gojson$ go test
Building CLI
$ go build -o _build/gojson ./gojson
Installing CLI
$ go install ./gojson
Formatting
$ gofmt -w -e -s -l .
Related Work
github.com/str1ngs/jflect
License
gojson is free software distributed under Version 3 of the GNU Public License.
As of the time of writing, this is the same license used for gcc (and therefore gccgo), so it is unlikely to restrict use in any way. Note that the GPL does not extend to any output generated by gojson; the GPL only applies to software which includes copies of gojson itself.
About
Automatically generate Go (golang) struct definitions from example JSON