Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
jy3
7y ago
0 comments
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
default
newest
oldest
jashmatthews
7y ago
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