Check out https://github.com/pkg/errors
If you want more rich control of the output of the stack trace there's https://github.com/go-stack/stack
Check out https://github.com/pkg/errors
If you want more rich control of the output of the stack trace there's https://github.com/go-stack/stack