MCPcopy Create free account
hub / github.com/pquerna/ffjson / NewEncoder

Function NewEncoder

ffjson/encoder.go:50–52  ·  view source on GitHub ↗

NewEncoder returns a reusable Encoder. Output will be written to the supplied writer.

(w io.Writer)

Source from the content-addressed store, hash-verified

48// NewEncoder returns a reusable Encoder.
49// Output will be written to the supplied writer.
50func NewEncoder(w io.Writer) *Encoder {
51 return &Encoder{w: w, enc: json.NewEncoder(w)}
52}
53
54// Encode the data in the supplied value to the stream
55// given on creation.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…