package main import ( "fmt" "net/http" ) func init() { http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) { if r.URL.Path != "/" { w.Header().Set("Location", "/") w.WriteHeader(http.StatusMovedPermanently) return } r.ParseForm() fmt.Fprintf(w, ` MandelMapper
`, r.FormValue("label")) }) }