随笔分类 -  Go

Golang
摘要:直接上代码,初略的写了一下,具体使用按照自身逻辑改改。 package main import ( "fmt" "reflect" ) type Student struct { Class string School string Love string StudentBase } type St 阅读全文
posted @ 2021-12-14 14:21 飞天猪皮怪 阅读(1744) 评论(0) 推荐(0) 编辑
摘要:介绍 gin 使用swagger 测试接口错误 TypeError: Failed to fetch 解决方案 找到项目中的的docs.go文件 将host 改为你程序的端口和ip,例如localhost:8080。 可能你的BasePath不是/v2,所以需要改成你的BasePath,例如我的是a 阅读全文
posted @ 2021-05-11 16:26 飞天猪皮怪 阅读(659) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示