MCPcopy Create free account
hub / github.com/modelcontextprotocol/go-sdk / NewDecoder

Function NewDecoder

internal/json/json.go:20–24  ·  view source on GitHub ↗
(r io.Reader)

Source from the content-addressed store, hash-verified

18}
19
20func NewDecoder(r io.Reader) *Decoder {
21 dec := json.NewDecoder(r)
22 dec.DontMatchCaseInsensitiveStructFields()
23 return &Decoder{dec: dec}
24}
25
26func (d *Decoder) Decode(v any) error {
27 return d.dec.Decode(v)

Callers 4

getJSONFunction · 0.92
newIOConnFunction · 0.92
UnmarshalFunction · 0.85

Calls

no outgoing calls

Tested by 1

Used in the wild real call sites across dependent graphs

searching dependent graphs…