MCPcopy Create free account
hub / github.com/donseba/go-htmx / WriteHTML

Method WriteHTML

handler.go:52–54  ·  view source on GitHub ↗

WriteHTML is a helper that writes HTML data to the connection.

(html template.HTML)

Source from the content-addressed store, hash-verified

50
51// WriteHTML is a helper that writes HTML data to the connection.
52func (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.
57func (h *Handler) WriteString(s string) (n int, err error) {

Callers 3

JustWriteHTMLMethod · 0.95
MustWriteHTMLMethod · 0.95
RenderMethod · 0.95

Calls 1

WriteMethod · 0.95

Tested by

no test coverage detected