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.

  1. 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.

  2. 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.

Was this page helpful?

Report a mistake