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

pkg/errors.Wrap is already accomplished in the stdlib via fmt.Errorf("annotation: %w", err).

Programs which use `panic` as ersatz error mechanisms are fundamentally broken. `panic` expresses an invariant violation that's much different than normal errors.



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

Search: