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.

Revisions

  1. pranavraja created this gist Dec 17, 2025.
    13 changes: 13 additions & 0 deletions timeout.go
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,13 @@
    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)
    }