3 ms·
If you want a stack trace with your errors you can use errors.Wrap()[1]. This repo should replace the stdlib errors package. 1. https://github.com/pkg/errors/b
by spyspy 9y ago
If you want a stack trace with your errors you can use errors.Wrap()[1]. This repo should replace the stdlib errors package.
1. https://github.com/pkg/errors/blob/master/errors.go#L180 https://github.com/pkg/errors/blob/master/errors.go#L180
- erikb 9y agoThanks! Can this also be added to already compiled tools somehow? E.g. kubernetes uses a lot of go components, but of course I only receive them in compiled form.