Skip to content

Instantly share code, notes, and snippets.

@zono
Last active June 7, 2018 08:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zono/46e773cbb50e7ccaa5fc1379ae3042bb to your computer and use it in GitHub Desktop.
Save zono/46e773cbb50e7ccaa5fc1379ae3042bb to your computer and use it in GitHub Desktop.
package main
import (
"fmt"
"net/http"
"time"
)
func handler(w http.ResponseWriter, r *http.Request) {
time.Sleep(100 * time.Second)
fmt.Fprintf(w, "Hello, World")
}
func main() {
http.HandleFunc("/", handler)
http.ListenAndServe(":8081", nil)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment