MCPcopy Index your code
hub / github.com/tdewolff/minify / ExampleMinify

Function ExampleMinify

json/json_test.go:102–109  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

100////////////////////////////////////////////////////////////////
101
102func ExampleMinify() {
103 m := minify.New()
104 m.AddFuncRegexp(regexp.MustCompile("[/+]json$"), Minify)
105
106 if err := m.Minify("application/json", os.Stdout, os.Stdin); err != nil {
107 panic(err)
108 }
109}

Callers

nothing calls this directly

Calls 2

AddFuncRegexpMethod · 0.80
MinifyMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…