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

You can also just assign your errors to variables, and typically you only need to do so for the innermost error. Wrapping calls can just use Errorf with the %w operator.

Horses for courses.



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

Search: