ToHTML formats the aggregated buckets as HTML to the writer. Use footer to add custom HTML at the bottom of the page.
(w io.Writer, footer template.HTML)
| 22 | // |
| 23 | // Use footer to add custom HTML at the bottom of the page. |
| 24 | func (a *Aggregated) ToHTML(w io.Writer, footer template.HTML) error { |
| 25 | data := map[string]interface{}{ |
| 26 | "Aggregated": a, |
| 27 | "Footer": footer, |
| 28 | "Snapshot": a.Snapshot, |
| 29 | } |
| 30 | return toHTML(w, data) |
| 31 | } |
| 32 | |
| 33 | // ToHTML formats the snapshot as HTML to the writer. |
| 34 | // |