package main
import (
"fmt"
"net/http"
)
func main() {
http.Handle("/", f ...**
[@carsten](https://twtxt.net/external?uri=https://yarn.zn80.net/user/carsten/twtxt.txt&nick=carsten#carsten) A “Web Server” in Go is as simple as:
package main
import (
"fmt"
"net/http"
)
func main() {
http.Handle("/", func (w http.ResponseWriter, r *http.Request) {
fmt.Fprintf(w, "Hello World!")
}
http.ListenAndServe(":8000", nil)
}
⌘ [Read more](https://twtxt.net/twt/hts3uba)
*