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

Function funcClass

stack/html.go:67–77  ·  view source on GitHub ↗
(c *Call)

Source from the content-addressed store, hash-verified

65var reMethodSymbol = regexp.MustCompile(`^\(\*?([^)]+)\)(\..+)$`)
66
67func funcClass(c *Call) template.HTML {
68 if c.Func.IsPkgMain {
69 return "FuncMain Exported"
70 }
71 s := c.Location.String()
72 if c.Func.IsExported {
73 s += " Exported"
74 }
75 /* #nosec G203 */
76 return template.HTML("Func") + template.HTML(template.HTMLEscapeString(s))
77}
78
79func minus(i, j int) int {
80 return i - j

Callers

nothing calls this directly

Calls 1

StringMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…