Selaa lähdekoodia

Fix WriteSuccess func description

master
Matt Baer 7 vuotta sitten
vanhempi
commit
2324643026
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. +1
    -1
      response.go

+ 1
- 1
response.go Näytä tiedosto

@@ -41,7 +41,7 @@ func renderString(w http.ResponseWriter, status int, msg string) error {
return writeBody(w, []byte(msg), status, "text/plain")
}

// WriteError writes the successful data and metadata to the ResponseWriter as
// WriteSuccess writes the successful data and metadata to the ResponseWriter as
// JSON.
func WriteSuccess(w http.ResponseWriter, data interface{}, status int) error {
env := &Envelope{


Ladataan…
Peruuta
Tallenna