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

Function Unmarshal

internal/json/json.go:30–32  ·  view source on GitHub ↗
(data []byte, v any)

Source from the content-addressed store, hash-verified

28}
29
30func Unmarshal(data []byte, v any) error {
31 return NewDecoder(bytes.NewReader(data)).Decode(v)
32}

Callers 7

AwaitMethod · 0.92
urlElicitationMiddlewareFunction · 0.92
validateDefaultPropertyFunction · 0.92

Calls 2

NewDecoderFunction · 0.85
DecodeMethod · 0.80

Tested by 4

Used in the wild real call sites across dependent graphs

searching dependent graphs…