projects

Pocket HTTP Server

2026 ยท github

A tiny Go HTTP server with query-param auth, request logging middleware, and graceful shutdown. It is meant as a clean reference for basic routing, middleware wiring, and shutdown behavior in Go.

Run it with go run main.go and it listens on http://localhost:7129.

  • GET /: health check
  • GET /login?user=admin&pass=1234: auth endpoint

It is intentionally small, so you can read the entire flow in a few minutes and copy the pieces you need for bigger services.