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)
| 34 | // |
| 35 | // Use footer to add custom HTML at the bottom of the page. |
| 36 | func (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 |