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

Method Bind

binding/form.go:55–64  ·  view source on GitHub ↗
(req *http.Request, obj any)

Source from the content-addressed store, hash-verified

53}
54
55func (formMultipartBinding) Bind(req *http.Request, obj any) error {
56 if err := req.ParseMultipartForm(defaultMemory); err != nil {
57 return err
58 }
59 if err := mappingByPtr(obj, (*multipartRequest)(req), "form"); err != nil {
60 return err
61 }
62
63 return validate(obj)
64}

Callers

nothing calls this directly

Calls 2

mappingByPtrFunction · 0.85
validateFunction · 0.70

Tested by

no test coverage detected