3 ms·
The point has also been made that errors in Go are O(1) so they cannot have stack traces. If you use the new %w to build a context trace in O(n) only as you nee
by inlined 7y ago
The point has also been made that errors in Go are O(1) so they cannot have stack traces. If you use the new %w to build a context trace in O(n) only as you need to bubble up the error.