What problem does it solve?
Swagger/OpenAPI specs often drift from real handler behavior because annotations are incomplete, misformatted, or missing security details, causing broken integrations and misleading API consumers.
Core Features & Use Cases
- Generate Swagger UI specs from swaggo/swag annotations so your Go handlers become the source of truth for API behavior.
- Document parameters, responses, and routing across common patterns like path/query/body params and structured success/failure responses.
- Apply security schemes correctly (Bearer/JWT, OAuth2, API key, basic auth) and support AND/OR composition per endpoint.
- Enrich and correct schemas via struct tags including examples, enums, swaggerignore, and swaggertype overrides for tricky Go types.
- Keep docs maintainable across frameworks by wiring the Swagger UI for gin, echo, fiber, and net/http/chi.
Quick Start
Generate and serve Swagger for a gin app by running swag init, importing _ "yourmodule/docs", and registering the swagger route at /swagger/*any.