API docs that
write themselves
Point GoDoc Live at your Go code. Get production-quality, interactive API documentation. No annotations. No config. No code changes.
Documentation preview
Get User by ID
| Parameter | Type | In | |
|---|---|---|---|
| id | uuid | path | required |
| fields | string | query | optional |
Everything your API docs need
Deep static analysis powered by Go's own compiler toolchain. No runtime, no reflection, no annotations.
Zero annotations
No comments, decorators, or struct tags required. GoDoc Live reads your actual handler code and extracts the contract automatically.
Full contract extraction
Path params, query params, headers, request bodies, response status codes, and payload types — all extracted from your handler AST.
Interactive docs UI
Beautiful, self-contained HTML documentation with search, dark mode, and a built-in Try It panel for testing endpoints live.
Auth detection
Automatically identifies JWT bearer, API key, and Basic Auth patterns from your middleware — no config needed.
OpenAPI 3.1.0 export
Generate a standards-compliant OpenAPI spec alongside your docs. JSON or YAML, ready for Postman, Insomnia, or any toolchain.
Live reload
Watch mode with Server-Sent Events. Edit your handler, save, and see updated docs instantly in the browser.
Three commands. Zero config.
GoDoc Live uses the Go compiler's own type-checker to understand your code the same way gopls does.
Install
One command. Single binary. No Node, no Python, no dependencies.
go install github.com/syst3mctl/godoclive/cmd/godoclive@latest
Generate
Point it at your Go module. GoDoc Live loads, parses, type-checks, and extracts every endpoint.
godoclive generate ./...
# or generate with OpenAPI spec
godoclive generate --openapi ./openapi.json ./...
Ship
Open the docs, share them with your team, or serve them with live reload during development.
godoclive watch --serve :8080 ./...
# or just open the static file
open docs/index.html
Works with your stack
Four major Go routers supported today, with more coming.
Verified across 50 endpoints
Measured against 12 testdata projects. Powered by go/ast and go/types — the same tools the Go compiler uses.
Use it as a library
GoDoc Live isn't just a CLI. Import it into your own tools, CI pipelines, or custom doc generators.
Analyze returns structured endpoint data. Generate writes HTML. GenerateOpenAPI writes a spec. Compose them however you need.
Why GoDoc Live?
Other tools need you to annotate your code. GoDoc Live reads it.
| GoDoc Live | swag | go-swagger | |
|---|---|---|---|
| Zero annotations needed | ✓ | ✗ | ✗ |
| Type-aware analysis | ✓ | ✗ | ✓ |
| Interactive docs UI | ✓ | ✓ | ✗ |
| Live reload | ✓ | ✗ | ✗ |
| OpenAPI 3.1.0 export | ✓ | 2.0 only | 2.0 only |
| Multi-router support | 4 routers | gin only | custom |
| Try It panel | ✓ | ✓ | ✗ |
| Auth auto-detection | ✓ | ✗ | ✗ |
Stop writing API docs.
Start generating them.
One install. One command. Beautiful, accurate docs from your existing Go handlers.