golang获取http中的get传递的参数:
获取URL的GET参数
func GetUrlArg(r *http.Request,name string)string{ var arg string values := r.URL.Query() arg=values.Get(name) return arg }
http请求库HttpRequest:https://blog.csdn.net/flyfreelyit/article/details/80281467
2024-01-29 19:32:10
golang获取http中的get传递的参数:
获取URL的GET参数
func GetUrlArg(r *http.Request,name string)string{ var arg string values := r.URL.Query() arg=values.Get(name) return arg }
http请求库HttpRequest:https://blog.csdn.net/flyfreelyit/article/details/80281467