Documentation ¶
Overview ¶
Package errcmp defines an Analyzer which checks for usage of errors.Is instead of direct ==/!= comparisons.
Index ¶
Constants ¶
View Source
const Doc = `check for comparison of error objects`
Doc documents this pass.
Variables ¶
View Source
var Analyzer = &analysis.Analyzer{ Name: "errcmp", Doc: Doc, Requires: []*analysis.Analyzer{inspect.Analyzer}, Run: run, }
Analyzer checks for usage of errors.Is instead of direct ==/!= comparisons.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.