Skip to content

Latest commit

 

History

History
61 lines (61 loc) · 2.22 KB

README.md

File metadata and controls

61 lines (61 loc) · 2.22 KB

doc

再项目目录下执行 swag init 命令,会生成一个docs目录,然后访问swagger index

feature

  • auto generate openapi

swagger index

 go install github.com/swaggo/swag/cmd/swag@latest
swag init
  • 环境变量设置和读取

使用godotenv

  • go test
    进入对应的目录,执行 go test, doc
  • swag post 参数

详情查看创建用户接口

gin 有统计

  • 如何方便的获取用户信息

reference

gin use swagger

live reload

支持使用goland进行调试。先启动golang服务,然后再在goland中启动debug。

golang orm

go sql driver

other

go mod tidy -v
  • add missing and remove unused modules
go mod tidy