Documentation ¶
Overview ¶
Package unexportedglobal implements a linter that verifies that unexported global variables and constants in a Go program are prefixed with '_' in their names.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Analyzer = &analysis.Analyzer{ Name: "unexportedglobal", Doc: "requires a '_' prefix on unexported global variables and constants", Run: run, Requires: []*analysis.Analyzer{ inspect.Analyzer, }, }
Analyzer implements the unexportedglobal linter.
See package documentation for details.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Directories ¶
Path | Synopsis |
---|---|
cmd
|
|
unexportedglobal
unexportedglobal is a linter for Go code that verifies that unexported global variables and constants are prefixed with '_' in their names.
|
unexportedglobal is a linter for Go code that verifies that unexported global variables and constants are prefixed with '_' in their names. |
Click to show internal directories.
Click to hide internal directories.