MCPcopy Index your code
hub / github.com/maruel/panicparse / functionColor

Method functionColor

internal/ui.go:114–116  ·  view source on GitHub ↗

functionColor returns the color to be used for the function name based on the type of package the function is in.

(c *stack.Call)

Source from the content-addressed store, hash-verified

112// functionColor returns the color to be used for the function name based on
113// the type of package the function is in.
114func (p *Palette) functionColor(c *stack.Call) string {
115 return p.funcColor(c.Location, c.Func.IsPkgMain, c.Func.IsExported)
116}
117
118func (p *Palette) funcColor(l stack.Location, main, exported bool) string {
119 if main {

Callers 1

callLineMethod · 0.95

Calls 1

funcColorMethod · 0.95

Tested by

no test coverage detected