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

Method WriteToken

jsontext/encode.go:344–346  ·  view source on GitHub ↗

WriteToken writes the next token and advances the internal write offset. The provided token kind must be consistent with the JSON grammar. For example, it is an error to provide a number when the encoder is expecting an object name (which is always a string), or to provide an end object delimiter w

(t Token)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 15

testCoderInterleavedFunction · 0.95
TestCoderStackPointerFunction · 0.95
TestCoderMaxDepthFunction · 0.95
testEncoderFunction · 0.95
testFaultyEncoderFunction · 0.95
testEncoderErrorsFunction · 0.95
FuzzCoderFunction · 0.95
Example_stringReplaceFunction · 0.95
makeBoolArshalerFunction · 0.45
makeStringArshalerFunction · 0.45
makeBytesArshalerFunction · 0.45
makeFloatArshalerFunction · 0.45

Calls

no outgoing calls

Tested by 13

testCoderInterleavedFunction · 0.76
TestCoderStackPointerFunction · 0.76
TestCoderMaxDepthFunction · 0.76
testEncoderFunction · 0.76
testFaultyEncoderFunction · 0.76
testEncoderErrorsFunction · 0.76
FuzzCoderFunction · 0.76
Example_stringReplaceFunction · 0.76
MarshalJSONToMethod · 0.36
TestMarshalFunction · 0.36
MarshalJSONToMethod · 0.36
MarshalJSONToMethod · 0.36