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. |
Dmitri Shuralyov | 7754f52 | 2015-05-29 18:11:14 -0700 | [diff] [blame] | 7 | * [gojson](https://github.com/ChimeraCoder/gojson) - Generates go struct definitions from example json documents. |
| 8 | * [vfsgen](https://github.com/shurcooL/vfsgen) - Generates a vfsdata.go file that statically implements the given virtual filesystem. |