Documentation ¶
Overview ¶
Package responsewritercheck checks that HTTP handlers do not pass the http.ResponseWriter to more than one function
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Analyzer = &analysis.Analyzer{ Name: "responsewritercheck", Doc: "reports instances where HTTP handlers pass the http.Responsewriter to more than one function", Run: run, Requires: []*analysis.Analyzer{ inspect.Analyzer, ctrlflow.Analyzer, }, }
Analyzer defines the responsewritercheck analysis tool, allowing it to be used with the analysis framework.
Functions ¶
This section is empty.
Types ¶
type VistorFunc ¶
VisitorFunc is an adapter for the ast.Visitor interface. It allows passing in anonymous functions that adhere to the Visitor interface.
Click to show internal directories.
Click to hide internal directories.