Skip to content
/ we Public

"wrapped error" - Yet another package to ease error handling (golang).

License

Unknown, CC0-1.0 licenses found

Licenses found

Unknown
LICENSE
CC0-1.0
COPYING
Notifications You must be signed in to change notification settings

tomd/we

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

we

"wrapped error" - Yet another package to ease error handling. Primary purpose is to make a log line that shows the call graph.

Any time you return err do return we.New(err) instead.

Usage

we.New(e) => "pkg.func(): e.Error()"

we.New(e, 42) => "pkg.func(42): e.Error()"

we.Newf(e, "foo=%d", 42) => "pkg.func(foo=42): e.Error()"

License

2018, Tom Spangebu tom@pogostick.net

CC0, see LICENSE/COPYING

About

"wrapped error" - Yet another package to ease error handling (golang).

Topics

Resources

License

Unknown, CC0-1.0 licenses found

Licenses found

Unknown
LICENSE
CC0-1.0
COPYING

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages