bytedance/go-tagexpr

If no position is tagged, try bind parameters from the URL query firstly?

Opened this issue · 0 comments

ealyn commented

The binding/README.md say:

If no position is tagged, try bind parameters from the body when the request has body,
otherwise try bind from the URL query

But after I modified the TestAuto, add "c": "c-from-jsonbody" into NewJSONBody, the case still pass.

contentType, bodyReader, err := httpbody.NewJSONBody(map[string]string{"e": "e-from-jsonbody"})

So docs or code, which is wrong?