blob: 019e08ae7d4bb58049f0217c246cb2af57f9f0a0 [file] [log] [blame] [view]
Jason Buberel93853272015-08-30 13:36:03 -07001An overview of tools that will help improve your Go code
2
Jason Buberel042985a2015-09-12 14:14:00 -07003## All-in-one
4
Jason Buberel75a9fb12015-09-12 15:24:14 -07005 - [gometalinter](https://github.com/alecthomas/gometalinter) - Automates the installation, configuration and application of `gofmt`, `golint`, `govet` and several other code validation tools.
Jason Buberel042985a2015-09-12 14:14:00 -07006
Jason Buberel93853272015-08-30 13:36:03 -07007## Code Formatting
8
Jason Buberela3d46902015-09-13 08:41:30 -07009### Articles
10
11 - [Formatting Go Code with gofmt](http://golangtutorials.blogspot.com/2011/06/formatting-go-code-with-gofmt.html)
12
13### Tools
14
Jason Buberel93853272015-08-30 13:36:03 -070015 - [gofmt](https://golang.org/cmd/gofmt/) - Start with the standard Go code formatter
16 - [golint](https://github.com/golang/lint) - Detects style mistakes in Go code
17 - [goimports](https://github.com/bradfitz/goimports) - Format code and fix your import statements
Jason Buberel93853272015-08-30 13:36:03 -070018
Jason Buberel92cc5422015-09-12 15:18:39 -070019## Code generation, Templating and Generics
Jason Buberel8e66a022015-09-12 15:12:03 -070020
21 - [json-to-go](https://mholt.github.io/json-to-go/) - Generate Go structs from JSON.
22 - [Go gen](http://clipperhouse.github.io/gen/) - Type-driven code generation (generics)
23 - [gojson](https://github.com/ChimeraCoder/gojson) - Another Go struct generator.
Jason Buberel92cc5422015-09-12 15:18:39 -070024 - [gonerics.io](http://bouk.co/blog/idiomatic-generics-in-go/) - Idiomatic Generics in Go
25 - [gotemplate](https://github.com/ncw/gotemplate) - Package-based templating system for Go
Jason Buberelc549bf62015-09-13 08:22:07 -070026 - [sqlgen](https://github.com/drone/sqlgen) - Generate Go code for SQL interactions.
Jason Buberel8e66a022015-09-12 15:12:03 -070027
Jason Buberel93853272015-08-30 13:36:03 -070028## Refactoring
Jason Buberela3d46902015-09-13 08:41:30 -070029
30### Articles
31
Jason Buberel93853272015-08-30 13:36:03 -070032 - [Refactoring with go fmt](http://spf13.com/post/go-fmt/)
33 - [gorename - easy refactoring](https://texlution.com/post/gorename/)
Jason Buberela3d46902015-09-13 08:41:30 -070034 - [Refectoring Tools](http://blog.ralch.com/tutorial/golang-tools-refactoring/) - An overview of refactoring tools for Go.
Jason Bubereldafb9342015-09-27 14:03:12 -070035 - [Quick renaming with gofmt](http://technosophos.com/2015/09/26/quick-go-hack-renaming-structs.html)
Jason Buberela3d46902015-09-13 08:41:30 -070036
37### Tools
38
39- [eg](https://godoc.org/golang.org/x/tools/cmd/eg) - Example-based refactoring tool for Go
40- [gofmt](https://golang.org/cmd/gofmt/) - Start with the standard Go code formatter
41- [gorename](https://golang.org/x/tools/refactor/rename) - Renaming tool for Go
Jason Buberel93853272015-08-30 13:36:03 -070042
43## Error Detection
44
Jason Buberela3d46902015-09-13 08:41:30 -070045### Articles
46
47 - [Go Inspection Tools](http://blog.ralch.com/tutorial/golang-tools-inspection/) - An overview of tools for Go code inspection.
Jason Bubereldafb9342015-09-27 14:03:12 -070048
Jason Buberela3d46902015-09-13 08:41:30 -070049### Tools
50
Auke Willem Oosterhoffca307322016-10-17 09:33:48 +020051 - [AlignCheck, StructCheck, VarCheck](https://github.com/opennota/check/) - A suite of tools for checking your code.
Jason Buberela3d46902015-09-13 08:41:30 -070052 - [errcheck](https://github.com/kisielk/errcheck) - Ensure you check your error conditions.
Jason Buberel93853272015-08-30 13:36:03 -070053 - [go vet](http://golang.org/cmd/vet/) - Read this first on how to use the `go vet` command.
Jason Buberela3d46902015-09-13 08:41:30 -070054 - [SafeSQL](https://github.com/stripe/safesql) - Protect against unsafe SQL in your code.
55 -
Jason Buberel93853272015-08-30 13:36:03 -070056
57## Navigation
58
59 - [go oracle - user manual](http://golang.org/s/oracle-user-manual) - A tool for understanding Go code
Jason Buberel042985a2015-09-12 14:14:00 -070060 - [Pythia](https://github.com/fzipp/pythia) - A browser-based UI for the Go Oracle.
61
62## Visualization
63
Karol Marcjanf533d0e2015-09-19 15:53:15 +020064 - [godegraph](http://github.com/kisielk/godepgraph) - A tool for generating dependency graphs of Go code.