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

Method Bind

binding/msgpack.go:23–25  ·  view source on GitHub ↗
(req *http.Request, obj any)

Source from the content-addressed store, hash-verified

21}
22
23func (msgpackBinding) Bind(req *http.Request, obj any) error {
24 return decodeMsgPack(req.Body, obj)
25}
26
27func (msgpackBinding) BindBody(body []byte, obj any) error {
28 return decodeMsgPack(bytes.NewReader(body), obj)

Callers

nothing calls this directly

Calls 1

decodeMsgPackFunction · 0.85

Tested by

no test coverage detected