swag
Command-line tool that generates Swagger 2.0 API documentation for Go projects from annotations in the source code.
swag is a Go command-line tool that generates Swagger 2.0 documentation from annotations written as comments in Go source code. The getting started section starts by adding those comments to the API source code.
Integrations for several Go web frameworks are separate repositories, listed in the README under its supported frameworks.
Identity
- Status
- Active
- Maintainer
- Eason Lin4
- Maintained by
- Individual4
- First release
- 20173
Rendering and deploy
- Install with
- go install, docker, download1
Releases
Adoption
Sources
- 2026-11-16: name, links, Categories, Runtime, Install with, Plugins
raw.githubusercontent.com/swaggo/swag/v1.16.6/README.md - 2026-11-16: links, Written in, GitHub stars
api.github.com/repos/swaggo/swag - 2026-11-16: First release, Current major version, Last release
api.github.com/repos/swaggo/swag/releases - 2026-11-16: Maintainer, Maintained by, License, License model
raw.githubusercontent.com/swaggo/swag/master/license - 2026-11-16: Contributors
api.github.com/repos/swaggo/swag/contributors?per_page=1 - 2026-11-16: Dependent packages, Dependent repositories
packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Fswaggo%2Fswag