What problem does it solve?
Golang Swagger helps you keep your Go API documentation accurate and discoverable by generating a Swagger/OpenAPI spec directly from code annotations, so frontend teams and API consumers don’t rely on outdated or incomplete docs.
Core Features & Use Cases
- Annotation-driven API contracts: Document handlers using @Summary, @Param, @Success/@Failure, @Router, and @Security to define request/response shapes and routing.
- Swagger UI wiring across frameworks: Register the Swagger UI endpoint for popular Go HTTP frameworks (Gin, Echo, Fiber, Chi, and net/http).
- Security and schema correctness: Define Bearer/JWT, OAuth2, API key, or basic auth schemes and use struct tags (swaggertype, enums, swaggerignore, example) to produce correct schemas for tricky Go types.
Quick Start
Use the golang-swagger skill to run swag init, annotate your Go handlers and models, and then wire the Swagger UI so it shows at /swagger/index.html.