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

Struct Minifier

html/html.go:54–64  ·  view source on GitHub ↗

Minifier is an HTML minifier.

Source from the content-addressed store, hash-verified

52
53// Minifier is an HTML minifier.
54type Minifier struct {
55 KeepComments bool
56 KeepConditionalComments bool
57 KeepSpecialComments bool
58 KeepDefaultAttrVals bool
59 KeepDocumentTags bool
60 KeepEndTags bool
61 KeepQuotes bool
62 KeepWhitespace bool
63 TemplateDelims [2]string
64}
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 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected