Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Package errors is indeed a part of the standard library.


Yes, they were wrong about that.

But they were right about it losing error context. Basically errorf can only help you bubble up the lowest level error in a machine readable way. You have to write your own error type if you want to let code handle the higher level errors.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: