会员
周边
新闻
博问
AI培训
云市场
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
Live in the moment
笔记本而已!
首页
新随笔
管理
2022年6月17日
gin单元测试启动服务后测试controller接口
摘要: 1、使用的包是 net/http/httptest 2、单元测试需要启动 gin 服务,然后 httptest.NewRequest 发送请求 示例代码: mkdir gin cd gin go mod init example.com go get github.com/gin-gonic/gin
阅读全文
posted @ 2022-06-17 09:51 许伟强
阅读(575)
评论(0)
推荐(0)
编辑
公告