Dmitri Shuralyov | bb6383d | 2015-02-05 19:02:00 -0800 | [diff] [blame] | 1 | [`go generate`](https://blog.golang.org/generate) is only useful if you have tools to use it with! Here is an incomplete list of useful tools that generate code. |
Samer Masterson | b3551a0 | 2015-02-02 14:38:50 -0800 | [diff] [blame] | 2 | |
Dmitri Shuralyov | bb6383d | 2015-02-05 19:02:00 -0800 | [diff] [blame] | 3 | * [go tool yacc](https://golang.org/cmd/yacc/) – Yacc for Go. |
| 4 | * [stringer](https://godoc.org/golang.org/x/tools/cmd/stringer) – Implements `fmt.Stringer` interface for enums. |
Dmitri Shuralyov | 8ecaf0b | 2015-02-05 19:04:53 -0800 | [diff] [blame] | 5 | * [gostringer](https://godoc.org/github.com/sourcegraph/gostringer) – Implements `fmt.GoStringer` interface for enums. |
Dmitri Shuralyov | bb6383d | 2015-02-05 19:02:00 -0800 | [diff] [blame] | 6 | * [jsonenums](https://github.com/campoy/jsonenums) – Implements `json.Marshaler` and `json.Unmarshaler` interfaces for enums. |
Samer Masterson | 3942126 | 2015-02-02 15:04:14 -0800 | [diff] [blame] | 7 | * [gen-mocks](https://sourcegraph.com/sourcegraph/gen-mocks) – Generate mocks for interfaces. Used in [go-sourcegraph](https://sourcegraph.com/sourcegraph.com/sourcegraph/go-sourcegraph@master/.tree/sourcegraph). |