Skip to content
JeteretingPublic

About

swagger 生成工具

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

18 Commits

Folders and files

Repository files navigation

Swaggo

项目修改自:github.com/teambition/swaggo

修改内容:

  1. 支持了项目本身为 go mod
  2. 支持了使用本工具的项目是 go mod 项目,不用再放到 go path 下了
  3. 个性化支持了分页响应,例如 // @Success 200 []schema.DeviceQRCodeResult "{list:列表数据,pagination:{current:页索引,pageSize:页大小,total:总数量}}" 根据描述里含有 pagination 自动转化为分页结构体

About

Generate API documentation from annotations in Go code. It's always used for you Go server application. The swagger file accords to the Swagger Spec and displays it using Swagger UI(this project dosn't provide).

Quick Start Guide

Install

export GO111MODULE=on;
go install github.com/Jetereting/swaggo@latest

use

swaggo -s ./internal/app/smartpark/routers/wx/swagger.go -p . -o ./internal/app/smartpark/swagger/

About

swagger 生成工具

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages

⌂ 换网址