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

Function ExampleMinify_writer

html/html_test.go:600–608  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

598}
599
600func ExampleMinify_writer() {
601 m := minify.New()
602 m.Add("text/html", &Minifier{})
603
604 w := m.Writer("text/html", os.Stdout)
605 w.Write([]byte("<html><body><h1>Example</h1></body></html>"))
606 w.Close()
607 // Output: <h1>Example</h1>
608}

Callers

nothing calls this directly

Calls 4

AddMethod · 0.80
WriterMethod · 0.80
WriteMethod · 0.45
CloseMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…