Ai
0 Star 1 Fork 0

shallot/Go开发工具集

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
api_get.go 473 Bytes
一键复制 编辑 原始数据 按行查看 历史
shallot 提交于 2024-08-22 14:58 +08:00 . 移入autohttp库。
package autohttp
import (
"context"
"net/http"
)
// 发送GET请求
func Get(
ctx context.Context,
businessType string,
businessId string,
url string,
header map[string]string,
) (statusCode int, rspBytes []byte, err error) {
item := Item{
BusinessType: businessType,
BusinessId: businessId,
Url: url,
Method: http.MethodGet,
Header: header,
Body: []byte{},
}
statusCode, rspBytes, err = apiBase(ctx, &item)
return
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/gxsshallot/gotool.git
git@gitee.com:gxsshallot/gotool.git
gxsshallot
gotool
Go开发工具集
d05a69787598

搜索帮助