#error handling

2 messages · Page 1 of 1 (latest)

sand relic
#

if err != nil {
// do stuff or wrap and bubble up
}

hollow hare
#

or just

if err := fallibleFunc(); err != nil {
// hoho haha
}