3 ms·
Error wrapping is by far my favorite go language feature.
by LorenzoGood 2y ago
Error wrapping is by far my favorite go language feature.
- euroderf 2y agoA stack trace is bare bones. A skeleton. Instead with %w you pass an error upward, wrapping it at each func with another text annotation, and at the top it emerges a fully-formed story. Or something like that. But anyways yeah error wrapping works great.