const Doc … var Analyzer … func run(pass *analysis.Pass) (interface{ … } var errorType … // checkAsTarget reports an error if the second argument to errors.As is invalid. func checkAsTarget(pass *analysis.Pass, e ast.Expr) error { … }
const Doc … var Analyzer … func run(pass *analysis.Pass) (interface{ … } var errorType … // checkAsTarget reports an error if the second argument to errors.As is invalid. func checkAsTarget(pass *analysis.Pass, e ast.Expr) error { … }