errwrap

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2024 License: BSD-3-Clause Imports: 14 Imported by: 9

Documentation

Overview

Package errwrap defines an Analyzer that rewrites error statements to use the new wrapping/unwrapping functionality

Index

Constants

This section is empty.

Variables

View Source
var Analyzer = &analysis.Analyzer{
	Name:             "errwrap",
	Doc:              "wrap errors in fmt.Errorf() calls with the %w verb directive",
	Requires:         []*analysis.Analyzer{inspect.Analyzer},
	Run:              run,
	RunDespiteErrors: true,
}

Analyzer of the linter

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