MCPcopy Create free account
hub / github.com/tdewolff/minify / ExampleMinify_options

Function ExampleMinify_options

html/html_test.go:575–585  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

573}
574
575func ExampleMinify_options() {
576 m := minify.New()
577 m.Add("text/html", &Minifier{
578 KeepDefaultAttrVals: true,
579 KeepWhitespace: true,
580 })
581
582 if err := m.Minify("text/html", os.Stdout, os.Stdin); err != nil {
583 panic(err)
584 }
585}
586
587func ExampleMinify_reader() {
588 b := bytes.NewReader([]byte("<html><body><h1>Example</h1></body></html>"))

Callers

nothing calls this directly

Calls 2

AddMethod · 0.80
MinifyMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…