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

Method Bind

binding/toml.go:21–23  ·  view source on GitHub ↗
(req *http.Request, obj any)

Source from the content-addressed store, hash-verified

19}
20
21func (tomlBinding) Bind(req *http.Request, obj any) error {
22 return decodeToml(req.Body, obj)
23}
24
25func (tomlBinding) BindBody(body []byte, obj any) error {
26 return decodeToml(bytes.NewReader(body), obj)

Callers

nothing calls this directly

Calls 1

decodeTomlFunction · 0.85

Tested by

no test coverage detected