github.com/ollien/xtrace (go): Package xtrace provides the ability to generate a trace of wrapped errors from xerrors. This is facilitated through the Tracer type, the output of which can be customized with a TraceFormatter. For more information on how to wrap errors, see https://godoc.org/golang.org/x/xerrors.  The following example will print a trace of all of the wrapped errors to stderr.  If more customization is desired, one can use a Tracer. One of Tracer's key features is its compatibility with fmt.  You can also add %+v for more detailed information.  Using fmt is not required, though. You may instead read the errors one at a time from the trace with the ReadNext and Read functions.  All output of a Tracer can be customized. By default, the Tracer will ensure that all messages end in a newline. If you want more customization than that, then you can create your own TraceFormatter. For instance, to make all of your errors in all caps, you can use the following TraceFormatter.  You can then set a Tracer's TraceFormatter like so
Keywords: errors|golang|xerrors