(h toHTMLer, p string, needsEnv bool)
| 108 | } |
| 109 | |
| 110 | func 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 | |
| 127 | func 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) |
no test coverage detected
searching dependent graphs…