-
Notifications
You must be signed in to change notification settings - Fork 70
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
feat: add logger middleware for dev/local environment #38
feat: add logger middleware for dev/local environment #38
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #38 +/- ##
==========================================
+ Coverage 61.96% 67.59% +5.62%
==========================================
Files 23 23
Lines 539 503 -36
==========================================
+ Hits 334 340 +6
+ Misses 177 137 -40
+ Partials 28 26 -2 ☔ View full report in Codecov by Sentry. |
@martinyonatann |
664f3c6
to
adca0a8
Compare
adca0a8
to
2f88bb1
Compare
) | ||
|
||
const ( | ||
ENVIRONMENT_NAME_PRODUCTION = "production" |
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.
I think in Go the culture is not to use ALL_CAP_CASE for variables like Java world no?
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.
go naming conventions https://www.mohitkhare.com/blog/go-naming-conventions/
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.
Constant should use all capital letters and use underscore _
to separate words. Eg. INT_MAX
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.
other reference https://www.cnblogs.com/zhangzhihui/articles/17881312.html
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.
https://go.dev/talks/2014/names.slide#5
Please try to follow the official blog and its rules
Constant should use all capital letters and use underscore
_
to separate words. Eg.INT_MAX
Can't have capital always as in Go, capital suggests exporting of values outside package scope
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.
looks good other than the const naming in CAP_CASE
Closes #37