studygolang如何获取GET/POST方法的值?

xuzhiping7 · · 8949 次点击
polaris
社区,需要你我一同完善!
在 `net/http` 包中,Request 结构中有说明: // Form contains the parsed form data, including both the URL // field's query parameters and the POST or PUT form data. // This field is only available after ParseForm is called. // The HTTP client ignores Form and uses Body instead. Form url.Values // PostForm contains the parsed form data from POST or PUT // body parameters. // This field is only available after ParseForm is called. // The HTTP client ignores PostForm and uses Body instead. PostForm url.Values
#2
更多评论
post 的值可以在http.form获得,但get的还是没能找到,要自己根据URL格式将值拼出来?
#1