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

  1. Initialize the router - gin.Default() includes Logger and Recovery middleware
  2. Define routes - Group related routes and attach handlers
  3. Bind and validate - Use ShouldBindJSON or ShouldBindQuery with struct tags
  4. Return responses - Use c.JSON() for consistent API responses

Quick-Start Example: REST API with Middleware

Installs
60
GitHub Stars
466
First Seen
Jan 24, 2026
gin-gonic — teachingai/full-stack-skills