You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 : JSON and JSONE.
What do you think ?
The text was updated successfully, but these errors were encountered:
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 anerror
.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 :
Error while marshalling response
.JSON
andJSONE
.What do you think ?
The text was updated successfully, but these errors were encountered: