WriteHTML is a helper that writes HTML data to the connection.
(html template.HTML)
| 50 | |
| 51 | // WriteHTML is a helper that writes HTML data to the connection. |
| 52 | func (h *Handler) WriteHTML(html template.HTML) (n int, err error) { |
| 53 | return h.Write([]byte(html)) |
| 54 | } |
| 55 | |
| 56 | // WriteString is a helper that writes string data to the connection. |
| 57 | func (h *Handler) WriteString(s string) (n int, err error) { |
no test coverage detected