MCPcopy Index your code
hub / github.com/bracesdev/errtrace / Format

Function Format

errtrace.go:91–93  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

89//
90// Returns an error if the writer fails.
91func 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

Callers 2

FormatStringFunction · 0.85
FormatMethod · 0.85

Calls 2

writeTreeFunction · 0.85
buildTraceTreeFunction · 0.85

Tested by

no test coverage detected