gin
Installation
SKILL.md
Gin
Gin is the most popular Go web framework, known for its martini-like API and performance (httprouter). v1.10 (2025) adds structured logging and better binding.
When to Use
- REST APIs: The industry standard for Go microservices.
- Performance: 40x faster than Martini.
- Middleware Ecosystem: Massive library of plugins.
Core Concepts
Router
Radix tree based routing. r.GET("/ping", handler).
Context (c *gin.Context)
Holds request, response, and metadata.