Created
June 13, 2017 21:46
-
-
Save colynb/149c3e7aa8e5c3c46e2f61dbddd5e80a to your computer and use it in GitHub Desktop.
stupid server in golang
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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