News for hackers. Stuff that matters.
Re:Golang landmines by kyrra on Sunday September 18, 2016 @10:44AM (#12525498)
Not sure it would help you but adding "go vet -shadow" to some kind of test or build script may help you detect these problems.

https://golang.org/cmd/vet/

Re:Golang landmines by leetrout on Sunday September 18, 2016 @12:54PM (#12526009)
This.

If anyone is using VIM or Atom please please please install the Go helpers, too. Atom's go-plus is awesome.

The team I work with- I beg them to use linters and go-plus and avoid these pitfalls like shadowing err. Instead most of them will run the linter, not fix the errors, then defend poor practices like shadowing and returning private types from exported methods.