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

Function toHTML

stack/html.go:46–63  ·  view source on GitHub ↗

Private stuff.

(w io.Writer, data map[string]interface{})

Source from the content-addressed store, hash-verified

44// Private stuff.
45
46func toHTML(w io.Writer, data map[string]interface{}) error {
47 m := template.FuncMap{
48 "funcClass": funcClass,
49 "minus": minus,
50 "pkgURL": pkgURL,
51 "srcURL": srcURL,
52 "symbol": symbol,
53 }
54 data["Favicon"] = favicon
55 data["GOMAXPROCS"] = runtime.GOMAXPROCS(0)
56 data["Now"] = time.Now().Truncate(time.Second)
57 data["Version"] = runtime.Version()
58 t, err := template.New("t").Funcs(m).Parse(indexHTML)
59 if err != nil {
60 return err
61 }
62 return t.Execute(w, data)
63}
64
65var reMethodSymbol = regexp.MustCompile(`^\(\*?([^)]+)\)(\..+)$`)
66

Callers 2

ToHTMLMethod · 0.70
ToHTMLMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…