Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
jy3
7y ago
0 comments
Save
Share
Just using WithStack() from "github.com/pkg/errors" on any error that originates from outside my repository has been my go-to rule for any Go project. It has never disappointed.
0 comments
3 comments · 1 top-level
top
newest
oldest
jashmatthews
7y ago
· 2 in thread
Like an exception?
jy3
OP
7y ago
Except it's just a returned value and not a goto lookalike.
dragonwriter
7y ago
Exceptions—which go straight up the call stack, like returns—are nothing like gotos.
1 more reply
j
/
k
navigate · click thread line to collapse