Documentation
¶
Overview ¶
Package check implements the unparam linter. Note that its API is not stable.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Checker ¶
type Checker struct {
// contains filtered or unexported fields
}
Checker finds unused parameters in a program. You probably want to use UnusedParams instead, unless you want to use a *loader.Program and *ssa.Program directly.
func (*Checker) Check ¶
Check runs the unused parameter check and returns the list of found issues, and any error encountered.
func (*Checker) CheckExportedFuncs ¶
CheckExportedFuncs sets whether to inspect exported functions
func (*Checker) ProgramSSA ¶
ProgramSSA supplies Checker with the needed *ssa.Program.
Click to show internal directories.
Click to hide internal directories.