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

Method ToHTML

stack/html.go:36–42  ·  view source on GitHub ↗

ToHTML formats the snapshot as HTML to the writer. Use footer to add custom HTML at the bottom of the page.

(w io.Writer, footer template.HTML)

Source from the content-addressed store, hash-verified

34//
35// Use footer to add custom HTML at the bottom of the page.
36func (s *Snapshot) ToHTML(w io.Writer, footer template.HTML) error {
37 data := map[string]interface{}{
38 "Footer": footer,
39 "Snapshot": s,
40 }
41 return toHTML(w, data)
42}
43
44// Private stuff.
45

Callers

nothing calls this directly

Calls 1

toHTMLFunction · 0.70

Tested by

no test coverage detected