StackLines prints one complete stack trace, without the header.
(signature *stack.Signature, srcLen, pkgLen int, pf pathFormat)
| 216 | |
| 217 | // StackLines prints one complete stack trace, without the header. |
| 218 | func (p *Palette) StackLines(signature *stack.Signature, srcLen, pkgLen int, pf pathFormat) string { |
| 219 | out := make([]string, len(signature.Stack.Calls)) |
| 220 | for i := range signature.Stack.Calls { |
| 221 | out[i] = p.callLine(&signature.Stack.Calls[i], srcLen, pkgLen, pf) |
| 222 | } |
| 223 | if signature.Stack.Elided { |
| 224 | out = append(out, " (...)") |
| 225 | } |
| 226 | return strings.Join(out, "\n") + "\n" |
| 227 | } |