Created
June 3, 2017 19:07
-
-
Save wejick/2cef1f8799361318a62a59f6801eade8 to your computer and use it in GitHub Desktop.
simple web server
This file contains 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("/", handler) | |
http.HandleFunc("/test", handler) | |
http.ListenAndServe(":8080", nil) | |
} | |
func handler(w http.ResponseWriter, r *http.Request) { | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment