MCPcopy
hub / github.com/tdewolff/minify / Minify

Function Minify

html/html.go:67–69  ·  view source on GitHub ↗

Minify minifies HTML data, it reads from r and writes to w.

(m *minify.M, w io.Writer, r io.Reader, params map[string]string)

Source from the content-addressed store, hash-verified

65
66// Minify minifies HTML data, it reads from r and writes to w.
67func Minify(m *minify.M, w io.Writer, r io.Reader, params map[string]string) error {
68 return (&Minifier{}).Minify(m, w, r, params)
69}
70
71// Minify minifies HTML data, it reads from r and writes to w.
72func (o *Minifier) Minify(m *minify.M, w io.Writer, r io.Reader, _ map[string]string) error {

Callers 8

FuzzFunction · 0.92
TestHTMLFunction · 0.70
TestHTMLCSSJSFunction · 0.70
TestHTMLURLFunction · 0.70
TestSpecialTagClosingFunction · 0.70
TestReaderErrorsFunction · 0.70
TestMinifyErrorsFunction · 0.70

Calls 1

MinifyMethod · 0.65

Tested by 7

TestHTMLFunction · 0.56
TestHTMLCSSJSFunction · 0.56
TestHTMLURLFunction · 0.56
TestSpecialTagClosingFunction · 0.56
TestReaderErrorsFunction · 0.56
TestMinifyErrorsFunction · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…