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

Method BindBody

binding/toml.go:25–27  ·  view source on GitHub ↗
(body []byte, obj any)

Source from the content-addressed store, hash-verified

23}
24
25func (tomlBinding) BindBody(body []byte, obj any) error {
26 return decodeToml(bytes.NewReader(body), obj)
27}
28
29func decodeToml(r io.Reader, obj any) error {
30 decoder := toml.NewDecoder(r)

Callers

nothing calls this directly

Calls 1

decodeTomlFunction · 0.85

Tested by

no test coverage detected