MCPcopy Create free account
hub / github.com/goadesign/goa / WriteTo

Method WriteTo

pkg/skip_response_writer.go:62–66  ·  view source on GitHub ↗

WriteTo writes to w. The value in w is wrapped when passed to fn keeping track of how bytes are written by fn.

(w io.Writer)

Source from the content-addressed store, hash-verified

60//
61// The value in w is wrapped when passed to fn keeping track of how bytes are written by fn.
62func (fn WriterToFunc) WriteTo(w io.Writer) (n int64, err error) {
63 wc := writeCounter{Writer: w}
64 err = fn(&wc)
65 return wc.Count(), err
66}

Callers 1

initPipeMethod · 0.80

Calls 1

CountMethod · 0.95

Tested by

no test coverage detected