Golang developers often have to check for errors and handle them
appropriately. Writing code similar to
if err != nil {
// do something fancy here
}
is very common and therefore it would be great to have a shortcut for
that.
There are some error handling snippets existing here but I don't really feel them to be "general purpose" as they are doing something concrete to handle the error (e.g. panic, log, fail a test)
Golang developers often have to check for errors and handle them appropriately. Writing code similar to
is very common and therefore it would be great to have a shortcut for that.
There are some error handling snippets existing here but I don't really feel them to be "general purpose" as they are doing something concrete to handle the error (e.g. panic, log, fail a test)