Simple Web Server
Basic Go HTTP server serving static files.
GoServer
Mar 2026GitHub
A minimal HTTP server in Go that serves static files with correct MIME type detection, directory listings, and graceful shutdown. It uses nothing outside the standard library - just net/http - and compiles to a single binary with zero runtime dependencies. Drop it in for local dev or a simple deployment and it just works.

It leverages http.FileServer with a custom handler for MIME detection and error pages, and adds configurable port and root directory via command-line flags. It shuts down cleanly on SIGINT/SIGTERM.