LabscoMCP early access ↗

Turns comments written above a Go web API's handlers into a browsable documentation page that readers can fire test requests from, regenerated whenever the handlers change.

WHEN TO USE

SCOPE

USE FOR

  • Add a Swagger UI to a Gin, Echo, Fiber, Chi, or net/http Go service.
  • Annotate a handler's parameters, responses, and security requirements for docs.
  • Define Bearer, API key, Basic, or OAuth2 security schemes for an API.
  • Enrich a request struct's Swagger schema with example, enum, and length tags.
  • Regenerate stale Swagger docs after changing a handler's annotations.

NOT FOR

  • Generating OpenAPI docs for a gRPC service — use grpc-gateway instead.