Generate Swagger/OpenAPI or a Postman Collection from your Go API. No annotations. No code changes. One command.
How it works
Install globally. Works from any Go project root — no per-project setup required.
Run from your project root. The tool reads your existing routes and handler comments.
Open the Swagger UI in any browser, or drag the Postman collection straight into Postman.
Output
A self-contained Swagger UI you can open in any browser, serve locally, or deploy alongside your service. Machine-readable JSON and YAML included.
Endpoints organised into folders by tag. Example request bodies pre-filled. Bearer auth wired up. Drag the generated file straight into Postman to import.
Framework support
Auto-detected from go.mod — or override with --framework.
Requires Go 1.24+. Install takes under ten seconds.
go install github.com/devenock/specyl@latest