package main import "net/http" func handlerError(err error, w http.ResponseWriter) { w.WriteHeader(http.StatusInternalServerError) _, _ = w.Write([]byte(err.Error())) }