package main | |
import ( | |
"fmt" | |
"net/http" | |
) | |
// hello world, the web server | |
func HelloServer(w http.ResponseWriter, r *http.Request) { | |
fmt.Fprintf(w, "Hello, world!") | |
} | |
func main() { | |
http.HandleFunc("/hello", HelloServer) | |
http.ListenAndServe(":12345", nil) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This comment has been minimized.
You are beautiful