(req *http.Request, obj any)
| 16 | } |
| 17 | |
| 18 | func (plainBinding) Bind(req *http.Request, obj any) error { |
| 19 | all, err := io.ReadAll(req.Body) |
| 20 | if err != nil { |
| 21 | return err |
| 22 | } |
| 23 | |
| 24 | return decodePlain(all, obj) |
| 25 | } |
| 26 | |
| 27 | func (plainBinding) BindBody(body []byte, obj any) error { |
| 28 | return decodePlain(body, obj) |
nothing calls this directly
no test coverage detected