packagemainimport("fmt""log""net/http")funchandler(whttp.ResponseWriter,r*http.Request){fmt.Fprintf(w,"Hi there, I love %s!",r.URL.Path[1:])}funcmain(){http.HandleFunc("/",handler)log.Fatal(http.ListenAndServe(":8080",nil))}//Fromhttps://golang.org/doc/articles/wiki/#tmp_3