func saveHandler(w http.ResponseWriter, r *http.Request) {
http.Error(w, fmt.Errorf("internal server error"), http.StatusInternalServerError)
return
}
以上handler始終返回一個(gè)internal server error的錯(cuò)誤
func saveHandler(w http.ResponseWriter, r *http.Request) {
http.Error(w, fmt.Errorf("internal server error"), http.StatusInternalServerError)
return
}
以上handler始終返回一個(gè)internal server error的錯(cuò)誤