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