Documentation
¶
Overview ¶
Package nolateconst defines an analyzer that forbids package-level const and var declarations that appear after any function or method declaration. All constants and variables should be grouped before functions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Analyzer = &analysis.Analyzer{
Name: "nolateconst",
Doc: "forbids package-level const/var declarations after function declarations",
Run: run,
}
Analyzer reports package-level const/var declarations that appear after function declarations.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.