golang-swagger
CommunityGenerate accurate Go Swagger/OpenAPI docs
Software Engineering#openapi#golang#swagger#api documentation#swagger ui#model schema#security annotations
Authordashkan
Version1.0.0
Installs0
System Documentation
What problem does it solve?
It prevents Swagger/OpenAPI specs from becoming incomplete or misleading when you add or change Go API endpoints, so consumers can integrate confidently.
Core Features & Use Cases
- Annotate handlers as contract-first docs: Add precise @Summary, @Param, @Success/@Failure, @Router, and @Security blocks so the UI reflects real behavior.
- Generate and wire Swagger UI: Run swag init/swag fmt to produce the docs/ artifacts and expose them at a framework route like /swagger/index.html.
- Model schemas accurately: Use struct tags like enums, examples, swaggerignore, and swaggertype to correct edge cases (time.Time, []byte, ignored fields).
- Apply security and filtering: Define security schemes once and apply per route, and use swag init tag selection to exclude internal/admin endpoints.
Quick Start
Use swag init to generate the docs, then wire the Swagger UI route in your server and ensure your handlers include standard swaggo annotations for parameters, responses, routing, and security.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: golang-swagger Download link: https://github.com/dashkan/pivox/archive/main.zip#golang-swagger Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.