Loading…
0+ curated questions with the same answer shape every time: quick recap, deep dive, pitfalls, and follow-ups. Coverage includes .
Gin is the most widely used Go web framework and the one most likely to appear in a Go backend job description. This module covers Gin's router (httprouter under the hood, route groups for versioning, named parameters and wildcards), the gin.Context object (the central type wrapping request and response — how it differs from the stdlib approach), middleware using gin.HandlerFunc and c.Next() (the abort pattern for short-circuiting authentication failures), binding request bodies to structs with ShouldBindJSON, ShouldBindQuery, ShouldBindForm (and the validation tags from go-playground/validator), Gin's error-handling model (c.Error accumulates errors; custom recovery middleware), and how to test Gin handlers with httptest.NewRecorder. The critical comparison is Gin vs net/http stdlib: when does Gin's convenience justify the dependency?
Full catalog
Topics are ordered for learning. Within each topic, rows are numbered 1–0 globally so you always know where you are. Collapse topics if you want a lighter view — use Expand all when you need the full list again.
Numbers 1–0 follow the order we recommend — click any row to open the full answer, or use the sticky Next link at the bottom of each page to go Q1 → Q0.