PrintStackTrace produces a human-readable partial representation of the stack trace.
(s *StackTrace)
| 28 | // PrintStackTrace produces a human-readable partial representation of |
| 29 | // the stack trace. |
| 30 | func PrintStackTrace(s *StackTrace) string { |
| 31 | var buf bytes.Buffer |
| 32 | for i := len(s.Frames) - 1; i >= 0; i-- { |
| 33 | f := s.Frames[i] |
| 34 | fmt.Fprintf(&buf, "%s:%d: in %s()\n", f.Filename, f.Lineno, f.Function) |
| 35 | } |
| 36 | return buf.String() |
| 37 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…