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

Constants

const Doc = "" /* 196 byte string literal not displayed */

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 8 packages. Updated 2020-03-29. Refresh now. Tools for package owners.