Skip to content

Latest commit

 

History

History
19 lines (12 loc) · 352 Bytes

README.md

File metadata and controls

19 lines (12 loc) · 352 Bytes

goctl-swagger

1. 编译goctl-swagger插件

go install .

2. 配置环境

将$GOPATH/bin中的goctl-swagger添加到环境变量

3. 使用姿势

  • 生成api/[main].api 到doc/swagger.json 文件

    goctl api plugin -plugin goctl-swagger="swagger -filename doc/swagger.json" -api ./api/[main].api