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.
There are very few exceptions to the global variable rule. This tool will ignore the following patterns:
* Variables with an Err prefix
* Variables named _
* Variables named version
go get 4d63.com/gochecknoglobals
gochecknoglobals [path] [path] [path] [etc]
Add -t to include tests.
gochecknoglobals -t [path]
Note: Paths are only inspected recursively if the Go /... recursive path suffix is appended to the path.