MCPcopy Create free account
hub / github.com/go-json-experiment/json / NewEncoder

Function NewEncoder

jsontext/encode.go:91–95  ·  view source on GitHub ↗

NewEncoder constructs a new streaming encoder writing to w configured with the provided options. It flushes the internal buffer when the buffer is sufficiently full or when a top-level value has been written. If w is a [bytes.Buffer], then the encoder appends directly into the buffer without copyin

(w io.Writer, opts ...Options)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 1

ResetMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…