It seems that GO language does not have warnings in it. I\'ve observed few instances. 1. \"declared and not used\"(if variable is declared and not used anywhere it gives an e
One solution for unused imports is to use goimports, which is a fork of gofmt. It automatically adds missing imports and removes unused ones (in addition to formatting your code).
http://godoc.org/code.google.com/p/go.tools/cmd/goimports
I've configured my editor to automatically run goimports whenever I save my code. I can't imagine writing go code without it now.