You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
u:="http://httpbin.org/post"// Using net/httpv:=make(url.Values) // url.Values has methods for value manipulatingv.Set("k1", "v1")
http.PostForm(u, v)
// orhttp.PostForm(u, url.Values{"k1": []string{"v1"}})
// Using gentlemanr:=gentleman.NewRequest()
// multipart.DataFields is actually same as url.Values, but without methodsd:=make(multipart.DataFields)
d["k1"] = multipart.Values{"v1"} // multipart.Values is useless, why not just use []string?r.Form(multipart.FormData{Data: d})
// orr.Use(multipart.Fields(d))
r.Send()
Suggestions:
remove multipart.Values, multipart.DataFields, using url.Values
add a shortcut gentleman.Request.Fields
The text was updated successfully, but these errors were encountered:
Suggestions:
multipart.Values
,multipart.DataFields
, usingurl.Values
gentleman.Request.Fields
The text was updated successfully, but these errors were encountered: