package
0.0.0-20240627020241-bd77024ea80d
Repository: https://github.com/yinjk/go-utils.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
对client.Do的简单封装.
Get 通过get方法发送http请求.
GetParam 通过GET方法带url参数的方式提交http请求.
GetStream 通过get请求获取http原始返回流.
No description provided by the author
PostForm 通过post请求提交http表单.
PostJson 通过post方法提交json格式请求体的http请求.
发送http post请求,v表示要post的结构体,最终会被解析成json,rv是返回post请求返回的数据,可传nil 此时返回的结果会解析成一个map[string] interface{} 放在Data属性中,若是想将返回结果解析成指定结构体, 则需要将该结构体的地址通过rv传给方法 For example: type Person struct { Name string `json:"name"` Age string `json:"age"` } 直接将结果解析成map: httpclient.PostValue("localhost:8080/hello", nil, nil, nil) 将结果解析成Person结构体: var p Person response, e := httpclient.PostValue("localhost", nil, nil, &p) .

# Constants

No description provided by the author
No description provided by the author
No description provided by the author

# Structs

FormValue http post form values.

# Type aliases

No description provided by the author