Browse Source

Fix WriteSuccess func description

master
Matt Baer 7 years ago
parent
commit
2324643026
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      response.go

+ 1
- 1
response.go View File

@@ -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…
Cancel
Save