Skip to content

Better parameter order

Latest
Compare
Choose a tag to compare
@jeffbmartinez jeffbmartinez released this 31 Jul 07:51

Moved statusCode parameter to be the second parameter in the functions instead of last.

It was suggested by a user on reddit and I like the reasoning as well as how it looks:

https://www.reddit.com/r/golang/comments/4rvmtc/common_http_response_library/d54ztpm/