Forked from yvasiyarov/gist:8ba8dde41807b4b72cd9
Last active
August 29, 2015 14:06
-
-
Save ergoz/8f25e3b599e6e875bff0 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 ( | |
"net/http" | |
) | |
func handler(w http.ResponseWriter, r *http.Request) { | |
w.Write([]byte("Hello world")) | |
} | |
func main() { | |
http.HandleFunc("/", handler) | |
http.ListenAndServe(":8080", nil) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment