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

Function ExampleM_Writer

minify_test.go:396–407  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

394}
395
396func ExampleM_Writer() {
397 m := New()
398 // add minfiers
399
400 w := m.Writer("mime/type", os.Stdout)
401 if _, err := w.Write([]byte("input")); err != nil {
402 panic(err)
403 }
404 if err := w.Close(); err != nil {
405 panic(err)
406 }
407}

Callers

nothing calls this directly

Calls 4

NewFunction · 0.85
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…