The net / http package in the standard library is stable and parallel (goroutine per client).
http.Handle("/foo", fooHandler) http.HandleFunc("/bar", func(w http.ResponseWriter, r *http.Request) { fmt.Fprintf(w, "Hello, %q", html.EscapeString(r.URL.Path)) }) log.Fatal(http.ListenAndServe(":8080", nil))
After reading Writing Web Applications , you will have the necessary skills to write idiomatic web applications in Go.
Moshe revah
source share