3 ms·
we have already do this in prod. type HandlerFuncErr func(w http.ResponseWriter, r http.Request) error func HandleErr(h HandlerFuncErr) http.HandlerFunc { re
by alingse 4y ago
we have already do this in prod.
type HandlerFuncErr func(w http.ResponseWriter, r http.Request) error
func HandleErr(h HandlerFuncErr) http.HandlerFunc {
return func(w http.ResponseWriter, r http.Request) { ... }
}