-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add response pkg #16
add response pkg #16
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Codecov Report
@@ Coverage Diff @@
## master #16 +/- ##
===========================================
+ Coverage 98.90% 100.00% +1.09%
===========================================
Files 13 13
Lines 638 624 -14
===========================================
- Hits 631 624 -7
+ Misses 5 0 -5
+ Partials 2 0 -2
Continue to review full report at Codecov.
|
} | ||
|
||
func (h *standardHandler) GetStatusBody(r *http.Request, data interface{}, err error) (httpStatus int, body interface{}) { | ||
httpStatus = http.StatusOK |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not use GetResponse? StatusBody seems to be like just returning one field. The func name is little strange
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
StatusBody
means Status
and Body
.
GetResponse
is easily misunderstood as http.Response
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
as title