{"repo":"antst/go-apispec","free":true,"listed":false,"github":"https://github.com/antst/go-apispec","clone":"git clone https://github.com/antst/go-apispec.git","description":"Generate OpenAPI 3.1 specs from Go source code via static analysis — zero annotations, automatic framework detection","language":"Go","stars":34,"topics":["chi","code-generation","echo","fiber","gin","go","golang","gorilla-mux","openapi","openapi-generator"],"license":"Apache-2.0","category":"dev-tools","readme_excerpt":"go-apispec: Generate OpenAPI from Go code go-apispec analyzes your Go source code and generates an OpenAPI 3.1 spec (YAML or JSON). Point it at your module — it detects the framework, follows the call graph from routes to handlers, and infers request/response types from real code. Quick Start That's it. The tool detects your framework, finds all routes, resolves handler types, and writes the spec. Features Framework Support Framework Routes Params Request Body Responses Mounting/Groups ----------- -------- -------- ------------- ----------- ----------------- Chi Full chi.URLParam , r.FormValue , r.FormFile , render pkg json.Decode , render.DecodeJSON json.Encode , render.JSON , w.Write Mount , Group Gin Full c.Param , c.Query ShouldBindJSON , BindJSON c.JSON , c.String , c.Data Group Echo Full c.Param , c.QueryParam , r.FormValue , r.FormFile c.Bind c.JSON , c.String , c.Blob Group Fiber Full c.Params , c.Query , c.FormValue , c.FormFile c.BodyParser c.JSON , c.Status().JSON Mount , Group Gorilla Mux Full Path template {id} (regex constraints {id:[0-9]+} stripped), .Queries(\"q\", \"{q}\") json.Decode json.Encode , w.Write PathPrefix , Subrouter net/http Basic Path template, r.FormValue , r.FormFile json.Decode json.Encode , w.Write , http.Error Nested ServeMux Go 1.22+ ServeMux method-prefix patterns are supported — mux.HandleFunc(\"GET /health/live\", h) produces get: /health/live , not a literal /GET /health/live key. Path templates are normalized per router: gorilla/mux regex c","default_branch":null,"files":null,"tree":[],"storefront":"/r/antst","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/antst/go-apispec/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}