errcmp

package
v0.0.0-...-1dc08c0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 17, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package errcmp defines an Analyzer which checks for usage of errors.Is instead of direct ==/!= comparisons.

Index

Constants

View Source
const Doc = `check for comparison of error objects`

Doc documents this pass.

Variables

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

Analyzer checks for usage of errors.Is instead of direct ==/!= comparisons.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL