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

Method BindBody

binding/json.go:40–42  ·  view source on GitHub ↗
(body []byte, obj any)

Source from the content-addressed store, hash-verified

38}
39
40func (jsonBinding) BindBody(body []byte, obj any) error {
41 return decodeJSON(bytes.NewReader(body), obj)
42}
43
44func decodeJSON(r io.Reader, obj any) error {
45 decoder := json.API.NewDecoder(r)

Callers

nothing calls this directly

Calls 1

decodeJSONFunction · 0.85

Tested by

no test coverage detected