go-gin-handlers

Installation
SKILL.md

When to Use

  • Creating new HTTP endpoints in a microservice
  • Adding or modifying middleware
  • Standardizing error responses
  • Implementing request validation
  • Setting up API versioning

Critical Patterns

Pattern Rule
Handlers are thin Handlers ONLY parse input, call application service, format output
No business logic Zero domain logic in handlers — delegate to application layer
Standardized responses ALL endpoints return the same JSON envelope
Validation at the edge Validate request DTOs in the handler layer using binding tags
Context propagation Always pass ctx from Gin to application service

Response Envelope

Related skills
Installs
1
First Seen
Mar 13, 2026