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

Method ShouldBindBodyWithJSON

context.go:946–948  ·  view source on GitHub ↗

ShouldBindBodyWithJSON is a shortcut for c.ShouldBindBodyWith(obj, binding.JSON).

(obj any)

Source from the content-addressed store, hash-verified

944
945// ShouldBindBodyWithJSON is a shortcut for c.ShouldBindBodyWith(obj, binding.JSON).
946func (c *Context) ShouldBindBodyWithJSON(obj any) error {
947 return c.ShouldBindBodyWith(obj, binding.JSON)
948}
949
950// ShouldBindBodyWithXML is a shortcut for c.ShouldBindBodyWith(obj, binding.XML).
951func (c *Context) ShouldBindBodyWithXML(obj any) error {

Calls 1

ShouldBindBodyWithMethod · 0.95