Back to godoc.org
golang.org/x/tools/go/analysis/passes/errorsas

package errorsas

v0.0.0 (4d5ea46)
Latest Go to latest
Published: 5 hours ago | License: BSD-3-Clause | Module: golang.org/x/tools

Overview

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 = "" /* 194 byte string literal not displayed */

Variables

var Analyzer = &analysis.Analyzer{
	Name:     "errorsas",
	Doc:      Doc,
	Requires: []*analysis.Analyzer{inspect.Analyzer},
	Run:      run,
}
Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
f or F : Jump to identifier