Documentation
¶
Overview ¶
Package analyzer contains the code which carries out our linting check.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Analyzer = &analysis.Analyzer{ Name: "alphavet", Doc: "Checks that functions are ordered alphabetically within packages.", Run: run, Requires: []*analysis.Analyzer{inspect.Analyzer}, }
Analyzer configures our function.
Functions ¶
This section is empty.
Types ¶
type Function ¶
type Function struct { // The file containing the function. File string // The name of the function. Name string // The position within our source where this object was. Position token.Pos // The receiver, if any, for the function. Receiver string }
Function represents a function definition which has been encountered when scanning the source code.
We want to differentiate between function calls that have receivers, and those that don't so we store some extra details here.
Click to show internal directories.
Click to hide internal directories.