FindSoftware

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

Current major version
13
Last release
2025-07-293

Adoption

GitHub stars
13,0532
Contributors
2515
Plugins
101
Dependent repositories
5,0096
Dependent packages
3,6096

Why these figures do not compare

Sources

  1. 2026-11-16: name, links, Categories, Runtime, Install with, Plugins
    raw.githubusercontent.com/swaggo/swag/v1.16.6/README.md
  2. 2026-11-16: links, Written in, GitHub stars
    api.github.com/repos/swaggo/swag
  3. 2026-11-16: First release, Current major version, Last release
    api.github.com/repos/swaggo/swag/releases
  4. 2026-11-16: Maintainer, Maintained by, License, License model
    raw.githubusercontent.com/swaggo/swag/master/license
  5. 2026-11-16: Contributors
    api.github.com/repos/swaggo/swag/contributors?per_page=1
  6. 2026-11-16: Dependent packages, Dependent repositories
    packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Fswaggo%2Fswag

Last reviewed · Listed since Edit on GitHubThis page as markdownas JSON