Documentation
¶
Overview ¶
Runtime example: serve the generated OpenAPI YAML at /openapi.yaml from inside a running gone HTTP server, instead of generating it ahead of time from a CLI.
go run ./goai/examples/runtime curl http://localhost:8080/openapi.yaml
The runtime handler caches the emitted bytes for `cacheTTL`. Set TTL > 0 in production to keep the spec request cheap; leave it at zero in local development so route changes show up on every refresh.
Click to show internal directories.
Click to hide internal directories.