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

Method Reset

jsontext/decode.go:132–147  ·  view source on GitHub ↗

Reset resets a decoder such that it is reading afresh from r and configured with the provided options. Reset must not be called on a Decoder passed to the [encoding/json/v2.UnmarshalerFrom.UnmarshalJSONFrom] method or the [encoding/json/v2.UnmarshalFromFunc] function.

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

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

TestDecoderResetFunction · 0.95
NewDecoderFunction · 0.45

Calls 2

GetMethod · 0.80
resetMethod · 0.45

Tested by 1

TestDecoderResetFunction · 0.76