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

Function toHTML

internal/main.go:110–125  ·  view source on GitHub ↗
(h toHTMLer, p string, needsEnv bool)

Source from the content-addressed store, hash-verified

108}
109
110func toHTML(h toHTMLer, p string, needsEnv bool) error {
111 /* #nosec G304 */
112 f, err := os.Create(p)
113 if err != nil {
114 return err
115 }
116 var footer template.HTML
117 if needsEnv {
118 footer = "To see all goroutines, visit <a href=https://github.com/maruel/panicparse#gotraceback>github.com/maruel/panicparse</a>"
119 }
120 err = h.ToHTML(f, footer)
121 if err2 := f.Close(); err == nil {
122 err = err2
123 }
124 return err
125}
126
127func processInner(out io.Writer, p *Palette, s stack.Similarity, pf pathFormat, html string, filter, match *regexp.Regexp, c *stack.Snapshot, first bool) error {
128 log.Printf("GOROOT=%s", c.RemoteGOROOT)

Callers 1

processInnerFunction · 0.70

Calls 1

ToHTMLMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…