func responseEncoder()

in reference-api/sources/github/github.go [35:41]


func responseEncoder(w http.ResponseWriter, status int, body any) {
	w.WriteHeader(status)
	err := json.NewEncoder(w).Encode(body)
	if err != nil {
		http.Error(w, "Internal Server Error", http.StatusInternalServerError)
	}
}