Skip to content

Instantly share code, notes, and snippets.

@colynb
Created June 13, 2017 21:46
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 colynb/149c3e7aa8e5c3c46e2f61dbddd5e80a to your computer and use it in GitHub Desktop.
Save colynb/149c3e7aa8e5c3c46e2f61dbddd5e80a to your computer and use it in GitHub Desktop.
stupid server in golang
package main
import (
"net/http"
)
func main() {
http.HandleFunc("/", func(w http.ResponseWriter, req *http.Request) {
w.Write([]byte("Hello World"))
})
http.ListenAndServe(":8000", nil)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment