go http请求

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

原文地址:https://www.cnblogs.com/cxscode/p/14609652.html