How to Implement Graceful Shutdown in a Go HTTP Server (Step by Step)

Why Go HTTP servers drop requests on Ctrl+C, how OS signals work in Go, how to properly shut down an HTTP server without losing in-flight…