swag

Generate Swagger 2.0 API documentation from Go source code

brewmacoslinux
Try with needOr install directly
Source

About

Automatically generate RESTful API documentation with Swagger 2.0 for Go

Commands

swag

Examples

Initialize Swagger documentation in a Go project$ swag init
Generate Swagger docs from annotated Go files in specific directory$ swag init -g main.go
Update existing Swagger documentation$ swag fmt