swagger-codegen contains a template-driven engine to generate documentation, API clients and server stubs in different languages by parsing your OpenAPI / Swagger definition.
Generate OpenAPI 3.1 (Swagger) specs from Go source code — no annotations. Static analysis and call-graph tracing infer routes, params, request/response schemas for Gin, Echo, Chi, Fiber, Gorilla Mux and net/http. Deterministic YAML/JSON output for CI, plus a web UI and call-graph diagram.