3 ms·
I think the structure as they show it in the end does not survive formatting though. if err != nil { return } would get turned into if err != nil {
by Insanity 8y ago
I think the structure as they show it in the end does not survive formatting though.
if err != nil { return }
would get turned into
if err != nil {
return
}
By gofmt.
So if you want your code to be well formatted, you still get some visual polution from the error handling there.