ShouldBindTOML is a shortcut for c.ShouldBindWith(obj, binding.TOML). It works like ShouldBindJSON but binds the request body as TOML data.
(obj any)
| 889 | // ShouldBindTOML is a shortcut for c.ShouldBindWith(obj, binding.TOML). |
| 890 | // It works like ShouldBindJSON but binds the request body as TOML data. |
| 891 | func (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. |