gin-gonic
Installation
SKILL.md
When to use this skill
Use this skill whenever the user wants to:
- Build Go HTTP services or REST APIs with Gin-Gonic
- Configure routing, route groups, and middleware
- Implement request binding, validation, and JSON responses
- Set up authentication, logging, or CORS middleware
- Deploy Gin applications with graceful shutdown
How to use this skill
Workflow
- Initialize the router -
gin.Default()includes Logger and Recovery middleware - Define routes - Group related routes and attach handlers
- Bind and validate - Use
ShouldBindJSONorShouldBindQuerywith struct tags - Return responses - Use
c.JSON()for consistent API responses