derrors

package
v0.0.0-...-e95d944 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2023 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Overview

Package derrors defines internal error values to categorize the different types error semantics supported by x/vuln.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Wrap

func Wrap(errp *error, format string, args ...interface{})

Wrap adds context to the error and allows unwrapping the result to recover the original error.

Example:

defer derrors.Wrap(&err, "copy(%s, %s)", dst, src)

Types

This section is empty.

Jump to

Keyboard shortcuts

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