MCPcopy Create free account
hub / github.com/chain/txvm / NewWriter

Function NewWriter

errors/writer.go:7–9  ·  view source on GitHub ↗

NewWriter returns a new Writer that writes to w until an error is returned.

(w io.Writer)

Source from the content-addressed store, hash-verified

5// NewWriter returns a new Writer that writes to w
6// until an error is returned.
7func NewWriter(w io.Writer) *Writer {
8 return &Writer{w: w}
9}
10
11// Writer is in an implementation of the
12// "sticky error writer" pattern as described

Callers 1

TestWriterFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestWriterFunction · 0.68