Created
November 17, 2016 17:32
-
-
Save paulja/64880df0473f607952a6ceb44c3e9952 to your computer and use it in GitHub Desktop.
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 ( | |
"fmt" | |
"net/http" | |
"log" | |
) | |
func main() { | |
http.HandleFunc("/", func (w http.ResponseWriter, req *http.Request) { | |
fmt.Fprint(w, "Hello World") | |
}) | |
log.Fatal(http.ListenAndServe(":8080", nil)) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment