callLine prints one stack line.
(line *stack.Call, srcLen, pkgLen int, pf pathFormat)
| 205 | |
| 206 | // callLine prints one stack line. |
| 207 | func (p *Palette) callLine(line *stack.Call, srcLen, pkgLen int, pf pathFormat) string { |
| 208 | return fmt.Sprintf( |
| 209 | " %s%-*s %s%-*s %s%s%s(%s)%s", |
| 210 | p.Package, pkgLen, line.Func.DirName, |
| 211 | p.SrcFile, srcLen, pf.formatCall(line), |
| 212 | p.functionColor(line), line.Func.Name, |
| 213 | p.Arguments, &line.Args, |
| 214 | p.EOLReset) |
| 215 | } |
| 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 { |
no test coverage detected