-
Notifications
You must be signed in to change notification settings - Fork 18.5k
GoGenerateTools
Aditya Mukerjee edited this page May 4, 2015
·
39 revisions
go generate is only useful if you have tools to use it with! Here is an incomplete list of useful tools that generate code.
- go tool yacc – Yacc for Go.
-
stringer – Implements
fmt.Stringerinterface for enums. -
gostringer – Implements
fmt.GoStringerinterface for enums. -
jsonenums – Implements
json.Marshalerandjson.Unmarshalerinterfaces for enums. - gen-mocks – Generate mocks for interfaces. Used in go-sourcegraph.
- gojson Generates go struct definitions from example json documents