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

Method ShouldBindBodyWithXML

context.go:951–953  ·  view source on GitHub ↗

ShouldBindBodyWithXML is a shortcut for c.ShouldBindBodyWith(obj, binding.XML).

(obj any)

Source from the content-addressed store, hash-verified

949
950// ShouldBindBodyWithXML is a shortcut for c.ShouldBindBodyWith(obj, binding.XML).
951func (c *Context) ShouldBindBodyWithXML(obj any) error {
952 return c.ShouldBindBodyWith(obj, binding.XML)
953}
954
955// ShouldBindBodyWithYAML is a shortcut for c.ShouldBindBodyWith(obj, binding.YAML).
956func (c *Context) ShouldBindBodyWithYAML(obj any) error {

Callers 1

Calls 1

ShouldBindBodyWithMethod · 0.95

Tested by 1