示例#1
0
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)
		}
	}
}
示例#2
0
func Delete(k string) {
	data.Delete(k)
}