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

Function NewEncoder

jsontext/alias.go:192–194  ·  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 12

arshal_test.goFile · 0.92
bench_test.goFile · 0.92
Example_stringReplaceFunction · 0.92
testCoderInterleavedFunction · 0.70
TestCoderStackPointerFunction · 0.70
TestBlockingDecoderFunction · 0.70
testEncoderFunction · 0.70
testFaultyEncoderFunction · 0.70
testEncoderErrorsFunction · 0.70
TestEncoderResetFunction · 0.70
FuzzCoderFunction · 0.70

Calls

no outgoing calls

Tested by 10

Example_stringReplaceFunction · 0.74
testCoderInterleavedFunction · 0.56
TestCoderStackPointerFunction · 0.56
TestBlockingDecoderFunction · 0.56
testEncoderFunction · 0.56
testFaultyEncoderFunction · 0.56
testEncoderErrorsFunction · 0.56
TestEncoderResetFunction · 0.56
FuzzCoderFunction · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…