Check that no globals are present in Go code.
Global variables are an input to functions that is not visible in the functions signature, complicate testing, reduces readability and increase the complexity of code.
go get 4d63.com/gochecknoglobals
gochecknoglobals [path] [path] [path] [etc]
-t to include tests.
gochecknoglobals -t [path]
Note: Paths are only inspected recursively if the Go
/... recursive path suffix is appended to the path.