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

Method Reset

jsontext/encode.go:101–116  ·  view source on GitHub ↗

Reset resets an encoder such that it is writing afresh to w and configured with the provided options. Reset must not be called on an Encoder passed to the [encoding/json/v2.MarshalerTo.MarshalJSONTo] method or the [encoding/json/v2.MarshalToFunc] function.

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

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 7

TestEncoderResetFunction · 0.95
arshal_test.goFile · 0.45
TestCompactAndIndentFunction · 0.45
TestIndentBigFunction · 0.45
EncodeMethod · 0.45
TestEncoderSetEscapeHTMLFunction · 0.45
NewEncoderFunction · 0.45

Calls 2

GetMethod · 0.80
resetMethod · 0.45

Tested by 4

TestEncoderResetFunction · 0.76
TestCompactAndIndentFunction · 0.36
TestIndentBigFunction · 0.36
TestEncoderSetEscapeHTMLFunction · 0.36