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

Method Minify

minify.go:46–46  ·  view source on GitHub ↗
(*M, io.Writer, io.Reader, map[string]string)

Source from the content-addressed store, hash-verified

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////////////////////////////////////////////////////////////////

Callers 15

TestMediatypeFunction · 0.65
TestDataURIFunction · 0.65
TestDecimalFunction · 0.65
TestDecimalTruncateFunction · 0.65
TestNumberFunction · 0.65
TestNumberTruncateFunction · 0.65
MinifyMimetypeMethod · 0.65
initFunction · 0.65
TestMinifyFunction · 0.65
TestAddFunction · 0.65
TestWildcardFunction · 0.65
benchmarkFunction · 0.65

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 15

TestMediatypeFunction · 0.52
TestDataURIFunction · 0.52
TestDecimalFunction · 0.52
TestDecimalTruncateFunction · 0.52
TestNumberFunction · 0.52
TestNumberTruncateFunction · 0.52
initFunction · 0.52
TestMinifyFunction · 0.52
TestAddFunction · 0.52
TestWildcardFunction · 0.52
benchmarkFunction · 0.52
TestJSFunction · 0.52