When to use this skill
Use this skill whenever the user wants to:
- Write Go HTTP routing, middleware, binding and rendering with Gin
- Configure route groups, recovery, CORS and deployment
How to use this skill
- Core: gin.Default(), GET/POST, c.JSON, c.Bind; route groups and middleware.
- Advanced: custom middleware, validation, static files; Graceful shutdown.
- Reference:https://gin-gonic.com/docs/
Best Practices
- Middleware order and responsibilities are clear; errors are returned uniformly.
- Binding and validation; use recovery and logging in production.
Keywords
gin, Go Web, routing, middleware