MCPcopy
hub / github.com/gin-gonic/gin / decodeMsgPack

Function decodeMsgPack

binding/msgpack.go:31–37  ·  view source on GitHub ↗
(r io.Reader, obj any)

Source from the content-addressed store, hash-verified

29}
30
31func decodeMsgPack(r io.Reader, obj any) error {
32 cdc := new(codec.MsgpackHandle)
33 if err := codec.NewDecoder(r, cdc).Decode(&obj); err != nil {
34 return err
35 }
36 return validate(obj)
37}

Callers 2

BindMethod · 0.85
BindBodyMethod · 0.85

Calls 3

validateFunction · 0.70
DecodeMethod · 0.65
NewDecoderMethod · 0.65

Tested by

no test coverage detected