Personal fork of the mighty, self-hostable Git server for the command line 🍦
1package web 2 3import "net/http" 4 5func renderStatus(code int) http.HandlerFunc { 6 return func(w http.ResponseWriter, _ *http.Request) { 7 w.WriteHeader(code) 8 w.Write([]byte(http.StatusText(code))) // nolint: errcheck 9 } 10}