tools: golang.org/x/tools/go/analysis/passes/errorsas Index | Files

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

Package Files

errorsas.go

Variables

var Analyzer = &analysis.Analyzer{
    Name:     "errorsas",
    Doc:      doc,
    Requires: []*analysis.Analyzer{inspect.Analyzer},
    Run:      run,
}

Package errorsas imports 6 packages (graph) and is imported by 3 packages. Updated 2019-09-20. Refresh now. Tools for package owners.