Create a gist now

Instantly share code, notes, and snippets.

Embed
What would you like to do?
simple web server
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