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

Method ShouldBindBodyWithYAML

context.go:956–958  ·  view source on GitHub ↗

ShouldBindBodyWithYAML is a shortcut for c.ShouldBindBodyWith(obj, binding.YAML).

(obj any)

Source from the content-addressed store, hash-verified

954
955// ShouldBindBodyWithYAML is a shortcut for c.ShouldBindBodyWith(obj, binding.YAML).
956func (c *Context) ShouldBindBodyWithYAML(obj any) error {
957 return c.ShouldBindBodyWith(obj, binding.YAML)
958}
959
960// ShouldBindBodyWithTOML is a shortcut for c.ShouldBindBodyWith(obj, binding.TOML).
961func (c *Context) ShouldBindBodyWithTOML(obj any) error {

Callers 1

Calls 1

ShouldBindBodyWithMethod · 0.95

Tested by 1