Переглянути джерело

Fix WriteSuccess func description

master
Matt Baer 7 роки тому
джерело
коміт
2324643026
1 змінених файлів з 1 додано та 1 видалено
  1. +1
    -1
      response.go

+ 1
- 1
response.go Переглянути файл

@@ -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{


Завантаження…
Відмінити
Зберегти