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

Method BindPlain

context.go:788–790  ·  view source on GitHub ↗

BindPlain is a shortcut for c.MustBindWith(obj, binding.Plain).

(obj any)

Source from the content-addressed store, hash-verified

786
787// BindPlain is a shortcut for c.MustBindWith(obj, binding.Plain).
788func (c *Context) BindPlain(obj any) error {
789 return c.MustBindWith(obj, binding.Plain)
790}
791
792// BindHeader is a shortcut for c.MustBindWith(obj, binding.Header).
793func (c *Context) BindHeader(obj any) error {

Callers 1

TestContextBindPlainFunction · 0.80

Calls 1

MustBindWithMethod · 0.95

Tested by 1

TestContextBindPlainFunction · 0.64