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

Function ExampleMinify

js/js_test.go:1050–1057  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1048////////////////////////////////////////////////////////////////
1049
1050func ExampleMinify() {
1051 m := minify.New()
1052 m.AddFunc("application/javascript", Minify)
1053
1054 if err := m.Minify("application/javascript", os.Stdout, os.Stdin); err != nil {
1055 panic(err)
1056 }
1057}

Callers

nothing calls this directly

Calls 2

AddFuncMethod · 0.80
MinifyMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…