Go keeps on not adding syntax sugar for if err != nil. https://go.dev/blog/error-syntax
But often the problem of language can be partially solved by IDE. IDE can already generate if err != nil branches. Goland can fold if err != nil branches. https://github.com/golang/vscode-go/issues/2311