Open ItisDL opened 2 years ago
looks like it is a kind of typo in README. obviously binding.Form doesn't have BindBody method and it doesn't implement BindingBody interface.
c.ShouldBindBodyWith(&objA, binding.Form)
My PR: https://github.com/gin-gonic/gin/pull/3312 however I think it is possible to update README and delete this feature for binding.Form
json:"foo" xml:"foo" binding:"required"
} objA := formA{} c.ShouldBindBodyWith(&objA, binding.Form) cant use binding.Form should use binding.JSON maybeDescription
How to reproduce
Expectations
Actual result