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

Interface Minifier

minify.go:45–47  ·  view source on GitHub ↗

Minifier is the interface for minifiers. The *M parameter is used for minifying embedded resources, such as JS within HTML.

Source from the content-addressed store, hash-verified

43// Minifier is the interface for minifiers.
44// The *M parameter is used for minifying embedded resources, such as JS within HTML.
45type Minifier interface {
46 Minify(*M, io.Writer, io.Reader, map[string]string) error
47}
48
49////////////////////////////////////////////////////////////////
50

Callers 27

TestMediatypeFunction · 0.65
TestDataURIFunction · 0.65
TestDecimalFunction · 0.65
TestDecimalTruncateFunction · 0.65
TestNumberFunction · 0.65
TestNumberTruncateFunction · 0.65
MinifyMimetypeMethod · 0.65
initFunction · 0.65
minifyStmtMethod · 0.80
minifyExprMethod · 0.80
optimizeCondExprMethod · 0.80
TestJSFunction · 0.95

Implementers 9

cmdMinifierminify.go
Mminify.go
DummyMinifierminify_test.go
Minifierjs/js.go
Minifierhtml/html.go
Minifiercss/css.go
Minifierxml/xml.go
Minifierjson/json.go
Minifiersvg/svg.go

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…