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

Method BindBody

binding/msgpack.go:27–29  ·  view source on GitHub ↗
(body []byte, obj any)

Source from the content-addressed store, hash-verified

25}
26
27func (msgpackBinding) BindBody(body []byte, obj any) error {
28 return decodeMsgPack(bytes.NewReader(body), obj)
29}
30
31func decodeMsgPack(r io.Reader, obj any) error {
32 cdc := new(codec.MsgpackHandle)

Callers

nothing calls this directly

Calls 1

decodeMsgPackFunction · 0.85

Tested by

no test coverage detected