Skip to content

Instantly share code, notes, and snippets.

@tailhook
Created September 5, 2015 20:55
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 tailhook/e794e40e4295e4e04849 to your computer and use it in GitHub Desktop.
Save tailhook/e794e40e4295e4e04849 to your computer and use it in GitHub Desktop.
Hello world go server for microbenchmarks
package main
import (
"fmt"
"net/http"
)
func handler(w http.ResponseWriter, r *http.Request) {
fmt.Fprintf(w, "Hello World")
}
func main() {
http.HandleFunc("/", handler)
http.ListenAndServe(":8887", nil)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment