Which web server do you use with Go for the web service?

If I wanted to create a web service using Go, which web server will I use?

My web service should interact with Mysql, redis and memcached. Are there robust libraries for everyone?

+7
source share
1 answer

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.

+18
source

All Articles