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

Function NewDecoder

jsontext/alias.go:150–152  ·  view source on GitHub ↗

NewDecoder constructs a new streaming decoder reading from r. If r is a [bytes.Buffer], then the decoder parses directly from the buffer without first copying the contents to an intermediate buffer. Additional writes to the buffer must not occur while the decoder is in use.

(r io.Reader, opts ...Options)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 15

arshal_test.goFile · 0.92
BenchmarkInternFunction · 0.92
bench_test.goFile · 0.92
mustDecodeTokensFunction · 0.92
NewDecoderFunction · 0.92
Example_stringReplaceFunction · 0.92
testCoderInterleavedFunction · 0.70
TestCoderStackPointerFunction · 0.70
testDecoderFunction · 0.70
testFaultyDecoderFunction · 0.70
testDecoderErrorsFunction · 0.70

Calls

no outgoing calls

Tested by 15

BenchmarkInternFunction · 0.74
mustDecodeTokensFunction · 0.74
Example_stringReplaceFunction · 0.74
testCoderInterleavedFunction · 0.56
TestCoderStackPointerFunction · 0.56
testDecoderFunction · 0.56
testFaultyDecoderFunction · 0.56
testDecoderErrorsFunction · 0.56
TestBufferDecoderFunction · 0.56
TestResumableDecoderFunction · 0.56
TestBlockingDecoderFunction · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…