# README
boot-plugin-gin-swagger
boot 系列 gin swagger 插件
使用说明
在源码按照 swag 规范编写好文档后
- 拉取依赖
go get -u github.com/jsmzr/boot-plugin-gin-swagger
- 在
main.go
入口文件中显式声明插件import _ "github.com/jsmzr/boot-plugin-gin-swagger"
- 本地安装 swag,
go get github.com/swaggo/swag/cmd/swag
- 本地使用 swag 生成 swagger 文件
swag init
- 在
main.go
入口文件中显式声明文档,如import _ "docs"
默认使用 /swagger/index.html
访问,可通过修改配置来设置路由。
# Structs
No description provided by the author