Lightlines
By samber

golang-swagger

samber33.6k installs

Keep your Go API's Swagger docs accurate.

What it does

Creates and audits Swagger documentation for Go APIs, including handler annotations, generated specifications, and UI integration.

When to use it

Use when adding or maintaining Swagger/OpenAPI documentation in a Go project, or when the codebase imports the listed swaggo packages.

How to use it

Give it a Go project; it adds Swagger annotations, generates documentation, and wires the UI, or audits existing annotations.

What you provide

  • An existing project

Uses

Good to know

  • cannot be undone: GitHub

Latest review

What you need · 2

Requires the Go toolchain; no version is specified.

Requires the swag CLI to generate documentation and format annotations; an installation command is provided.


Access · 3

This skill

GitHub

Write

Posts bug reports to GitHub (irreversible)

swaggo/swag documentation

Read

Consults swaggo/swag documentation