Hacker News new | ask | show | jobs
by jeremyloy_wt 1614 days ago
Go errors are not stringly typed. You can assert that the error itself, or any error it wraps, is it a particular type through errors.Is and As.

If your past experience involved people comparing error.Error() strings I’m sorry. That’s awful and I can see why that would be a nightmare