by alias_neo · 8y ago · 0 comments
If that's not the case (and it's not clear from any of the documentation), it seems like this adds no real value, and in my opinion actually makes the error handling ugly and harder to maintain.
Also, use package-defined, exported error types that you can refer to by name, and errors become useful data again like Go intended.