func handleDelete(w http.ResponseWriter, r *http.Request) { if err := r.ParseForm(); err != nil { log.Print(err) } if len(r.Form) > 0 { for k, _ := range r.Form { data.Delete(k) } } }
func Delete(k string) { data.Delete(k) }