This document describes various code inspection, analysis, and refactoring tools for Go including gotype, errcheck, go vet, golint, defercheck, structcheck, varcheck, godoc, oracle, pythia, gorename, gofmt, eg, and gocyclo. It provides links to documentation and instructions for installing and using each tool.
16. golint
• error var SomeErr should have name of the form ErrFoo
• exported var SomeErr should have comment or be unexported
global error vars & doc comments
30. oracle
http://golang.org/s/oracle-user-manual
go get golang.org/x/tools/cmd/oracle
$ oracle
-pos='./src/github.com/boltdb/bolt/tx.go:#1630'
-format=plain
callers github.com/boltdb/bolt
./src/github.com/boltdb/bolt/tx.go:66:15: (*github.com/boltdb/bolt.Tx).
Size is called from these 1 sites:
./src/github.com/boltdb/bolt/tx.go:285:35: static method call from
(*github.com/boltdb/bolt.Tx).WriteTo