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 What is the http.Handler interface, and why is it central to Go web development?
http.Handler has one method, ServeHTTP(http.ResponseWriter, *http.Request). Routers, middleware, frameworks and servers all speak this interface, so pieces compose freely.
-
What is log/slog and why use it?
log/slog (Go 1.21+) is the standard library's structured logger: log lines carry typed key-value attributes and can be output as JSON or text through handlers.