Skip to content

Instantly share code, notes, and snippets.

@pranavraja
Created December 17, 2025 19:50
Show Gist options
  • Select an option

  • Save pranavraja/022c23ecd51b218253ab0174d37db22f to your computer and use it in GitHub Desktop.

Select an option

Save pranavraja/022c23ecd51b218253ab0174d37db22f to your computer and use it in GitHub Desktop.
timeout.go
package main
import (
"net/http"
"time"
)
func main() {
http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
time.Sleep(time.Minute)
})
http.ListenAndServe(":5000", nil)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment