Format writes the return trace for given error to the writer. The output takes a format similar to the following: : : [...] Any error that has a method `TracePC() uintptr` will contribute to the trace. If the error do
(w io.Writer, target error)
| 89 | // |
| 90 | // Returns an error if the writer fails. |
| 91 | func Format(w io.Writer, target error) (err error) { |
| 92 | return writeTree(w, buildTraceTree(target)) |
| 93 | } |
| 94 | |
| 95 | // FormatString writes the return trace for err to a string. |
| 96 | // Any error that has a method `TracePC() uintptr` will |
no test coverage detected