Interview Q&A · questions with model answers
Go Web Frameworks Interview Questions
Ordered by how often they're asked. Most-asked answers are free to read in full; members see every answer and can rate their confidence on each.
-
Most asked Compare Gin, Echo, Chi and Fiber.
Chi is a net/http-compatible router; Gin is the most popular framework with its own Context and tag-based binding; Echo is similar but handlers return errors handled centrally; Fiber is Express-like…
-
Which http.Server timeouts should you set, and why?
ReadHeaderTimeout, ReadTimeout, WriteTimeout and IdleTimeout. The zero values mean no timeout, so slow or malicious clients can hold connections and goroutines forever (slowloris).
-
Compare GORM, sqlx and sqlc.
GORM is a full ORM (models, associations, migrations, query builder); sqlx is a thin layer over database/sql (struct scanning, named params) where you write SQL; sqlc generates type-safe Go code…