you could use an `else` clause for the scope:
if foo, err := doThing(bar); err != nil {
// handle error
} else {
// handle foo
}
but most don't use that form and just do the call outside: foo, err := doThing(bar)
if err != nil {
// handle error
}