Преглед изворни кода

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{


Loading…
Откажи
Сачувај