This is my proposal for handling errors in a new version of Go. This is part of the ongoing public discussion at [https://github.com/golang/go/wiki/Go2ErrorHandlingFeedback]
My proposal does not make code shorter, but provides easier error handling and cleanup.
I prefer to stick to the Go language conventions and create an extension to an if statement. Consider this: