-
Notifications
You must be signed in to change notification settings - Fork 4
Closed
Labels
Description
Hello,
I am using your package, great work, thanks a lot. I would like to share an idea to improve your package.
gores.JSON(w, http.StatusOK, nil) returns an error.
The way I use it, like you do it yourself in the documentation, I ignore the error, giving this result when using golangci-lint : Error return value of gores.JSON is not checked (errcheck)
Two choices :
- Do not return an error and write an error message in the response directly, for example
Error while marshalling response. - Create two functions, for convenience, for example :
JSONandJSONE.
What do you think ?
evrimalacan