SuperAPI AI Directory

gin

Coding & development

View repository

Updated 10-16 03:15

About this skill

When to use this skill

Use this skill whenever the user wants to:

  • Writing Go HTTP routing, middleware, binding, and rendering with Gin
  • Configuring route groups, recovery, CORS, and deployment

How to use this skill

  1. Core: gin.Default(), GET/POST, c.JSON, c.Bind; route groups and middleware.
  2. Advanced: custom middleware, validation, static files; graceful shutdown.
  3. 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