Keynote: You Want To Build a Web Service?
summary
Live‑codes a minimal Go “starter kit” that proves production basics: project layout with command/internal packages, dependency management via go mod, config as tagged structs with defaults plus env and flag overrides, and no hidden globals. Adds human logs, embedded build info using -ldflags, runtime metrics and debug endpoints via pprof and expvar (debug on :4000, API on :3000), and graceful shutdown using http.Server.Shutdown with a shutdown signal channel and error‑type signaling. The demo builds, shows help, and serves debug endpoints successfully.
AI-written summary · about
chapters (10)
- 0:00Introduction and overview
- 3:56Project structure and setup
- 10:40Logging design philosophy
- 12:44Configuration management
- 21:56Build-time variables and debugging
- 26:06Debugging and metrics setup
- 31:05HTTP server and shutdown handling
- 42:46Error handling and shutdown signals
- 44:37Starter kit vs frameworks
- 46:01Closing remarks and Q&A








