package main import ( "net/http" "log" ) func reply(rw http.ResponseWriter, req *http.Request) { rw.Write([]byte("

Hello world.\n

")) } func main() { http.HandleFunc("/", reply) log.Fatal(http.ListenAndServe(":8082", nil)) }