From cdcd142e116d96071fec33ae08d47ccf9cc9c9c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Ortega?= Date: Thu, 1 Mar 2018 14:57:00 -0500 Subject: [PATCH] Update README.md --- README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 5a18f87..91e02bb 100644 --- a/README.md +++ b/README.md @@ -27,9 +27,10 @@ response.Data = rows //WriteResponse receive http.ResponseWriter. It send the response even if there are any error. //Use WriteResponseOnSuccess(w) if you do not want to send the response when there is an error. -response.WriteResponse(w) - -// +err := response.WriteResponse(w) +if err != nil { + //Handle error +} ```