MCPcopy Create free account
hub / github.com/maruel/panicparse / callLine

Method callLine

internal/ui.go:207–215  ·  view source on GitHub ↗

callLine prints one stack line.

(line *stack.Call, srcLen, pkgLen int, pf pathFormat)

Source from the content-addressed store, hash-verified

205
206// callLine prints one stack line.
207func (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.
218func (p *Palette) StackLines(signature *stack.Signature, srcLen, pkgLen int, pf pathFormat) string {

Callers 1

StackLinesMethod · 0.95

Calls 2

functionColorMethod · 0.95
formatCallMethod · 0.80

Tested by

no test coverage detected