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

posted @ 2021-04-02 10:44  程序生(Codey)  阅读(151)  评论(0编辑  收藏  举报