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

Function ExampleMinify

xml/xml_test.go:135–142  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

133////////////////////////////////////////////////////////////////
134
135func ExampleMinify() {
136 m := minify.New()
137 m.AddFuncRegexp(regexp.MustCompile("[/+]xml$"), Minify)
138
139 if err := m.Minify("text/xml", os.Stdout, os.Stdin); err != nil {
140 panic(err)
141 }
142}

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…