xdefer

package
v0.0.0-...-b88c69b Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2024 License: ISC Imports: 3 Imported by: 18

Documentation

Overview

Package xdefer implements an extremely useful function, Errorf, to annotate all errors returned from a function transparently.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Errorf

func Errorf(err *error, s string, v ...interface{})

Errorf makes it easy to defer annotate an error for all return paths in a function. See the tests for how it's used.

Pass s == "" to only annotate the location of the return.

Types

This section is empty.

Jump to

Keyboard shortcuts

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