writeCard renders the HTML card to a file.
(path string, s stats.Stats)
| 88 | |
| 89 | // writeCard renders the HTML card to a file. |
| 90 | func writeCard(path string, s stats.Stats) error { |
| 91 | f, err := os.Create(path) |
| 92 | if err != nil { |
| 93 | return err |
| 94 | } |
| 95 | defer f.Close() |
| 96 | return renderCardHTML(f, s) |
| 97 | } |