Registry / utility / friendsofgo-errors

friendsofgo-errors

JSON →
library0.9.2gogounverified

Provides error handling primitives with stack traces and context wrapping, based on Dave Cheney's errors package.

go get github.com/friendsofgo/errors
INSTALL
IMPORT
SIG · FRIENDSOFGO-ERRORS
F
friendsofgo-errors
utilitygov0.9.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

errors
github.com/friendsofgo/errors

Creates a new error with a stack trace.

package main import ( "fmt" "github.com/friendsofgo/errors" ) func main() { err := errors.New("something went wrong") fmt.Println(err) }
Debug
Known issues
gotchaThis package shadows the standard library errors package; importing both requires aliasing.
fix
Use an import alias: import ferrors "github.com/friendsofgo/errors"
affects: all
Upgrade
Version history
0.9.2latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
friendsofgo-errors — go get friendsofgo-errors · libregistry