package errorsas
import "golang.org/x/tools/go/analysis/passes/errorsas"
The errorsas package defines an Analyzer that checks that the second argument to errors.As is a pointer to a type implementing error.
Index ¶
Constants ¶
const Doc = "" /* 196 byte string literal not displayed */
Variables ¶
var Analyzer = &analysis.Analyzer{ Name: "errorsas", Doc: Doc, URL: "https://pkg.go.dev/golang.org/x/tools/go/analysis/passes/errorsas", Requires: []*analysis.Analyzer{inspect.Analyzer}, Run: run, }
Source Files ¶
errorsas.go
- Version
- v0.30.0 (latest)
- Published
- Feb 10, 2025
- Platform
- linux/amd64
- Imports
- 8 packages
- Last checked
- 3 hours ago –
Tools for package owners.