Help us shape the future of Go! Take the 2026 Go Developer Survey

errorcategory

package
v1.55.0 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package errorcategory defines an analyzer that requires categories on newly created errors while allowing errors wrapped with fmt.Errorf and %w.

Index

Constants

This section is empty.

Variables

View Source
var Analyzer = &analysis.Analyzer{
	Name: "errorcategory",
	Doc:  "require semantic categories when creating errors",
	Run:  run,
}

Analyzer reports error creation sites that do not assign a semantic category.

Functions

This section is empty.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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