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

Method BindYAML

context.go:778–780  ·  view source on GitHub ↗

BindYAML is a shortcut for c.MustBindWith(obj, binding.YAML).

(obj any)

Source from the content-addressed store, hash-verified

776
777// BindYAML is a shortcut for c.MustBindWith(obj, binding.YAML).
778func (c *Context) BindYAML(obj any) error {
779 return c.MustBindWith(obj, binding.YAML)
780}
781
782// BindTOML is a shortcut for c.MustBindWith(obj, binding.TOML).
783func (c *Context) BindTOML(obj any) error {

Callers 1

TestContextBindWithYAMLFunction · 0.80

Calls 1

MustBindWithMethod · 0.95

Tested by 1

TestContextBindWithYAMLFunction · 0.64