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

Method ShouldBindTOML

context.go:891–893  ·  view source on GitHub ↗

ShouldBindTOML is a shortcut for c.ShouldBindWith(obj, binding.TOML). It works like ShouldBindJSON but binds the request body as TOML data.

(obj any)

Source from the content-addressed store, hash-verified

889// ShouldBindTOML is a shortcut for c.ShouldBindWith(obj, binding.TOML).
890// It works like ShouldBindJSON but binds the request body as TOML data.
891func (c *Context) ShouldBindTOML(obj any) error {
892 return c.ShouldBindWith(obj, binding.TOML)
893}
894
895// ShouldBindPlain is a shortcut for c.ShouldBindWith(obj, binding.Plain).
896// It works like ShouldBindJSON but binds plain text data from the request body.

Callers 1

Calls 1

ShouldBindWithMethod · 0.95

Tested by 1