Documentation ¶
Overview ¶
Package ctxfunc implements an analyzer that checks if a context argument is always the first parameter to a function, and that it is named 'ctx'.
Index ¶
Constants ¶
View Source
const Doc = "check if there is any context parameter in the code, that is not the first argument to a function or that's not named 'ctx'"
Doc is the documentation string that is shown on the command line if help is requested.
Variables ¶
View Source
var Analyzer = &analysis.Analyzer{ Name: "ctxfunc", Doc: Doc, Run: run, Requires: []*analysis.Analyzer{ inspect.Analyzer, }, }
Analyzer implements the analyzer that checks all context arguments.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.