-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
improved customizingyourgateway.md #1359
improved customizingyourgateway.md #1359
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.
Thanks for this proposal! However, it is idiomatic in Go to use tabs
for indentation (gofmt uses it: https://golang.org/cmd/gofmt/), so I'm not sure using spaces in the snippets is appropriate. I noticed some of the lines are mixing spaces and tabs though, so maybe you could change all the snippets to use tabs consistently?
thank you for feedback @johanbrandhorst I have removed tabs and followed https://golang.org/cmd/gofmt/ please take a look |
Codecov Report
@@ Coverage Diff @@
## master #1359 +/- ##
=======================================
Coverage 54.14% 54.14%
=======================================
Files 42 42
Lines 4375 4375
=======================================
Hits 2369 2369
Misses 1750 1750
Partials 256 256 Continue to review full report at Codecov.
|
Sorry for the confusion; what I mean is that we should use tabs in all the Go snippets, as |
I got it means previous changes what I made was correct and I should make other files to https://golang.org/cmd/gofmt/ is that right? @johanbrandhorst |
The first change you made, seemed to me to introduce spaces in place of tabs. We don't want to use spaces in the Go snippets, because idiomatic Go code uses tabs. |
Codecov Report
@@ Coverage Diff @@
## master #1359 +/- ##
=======================================
Coverage 54.14% 54.14%
=======================================
Files 42 42
Lines 4375 4375
=======================================
Hits 2369 2369
Misses 1750 1750
Partials 256 256 Continue to review full report at Codecov.
|
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.
Maybe just leave the snippets for now and focus on the prose? These are really great changes.
@johanbrandhorst can you review my last changes? |
@johanbrandhorst can you review the changes? |
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.
Thanks, this looks great!
Thanks for your contribution! Could you please cherry pick this against the v2 branch? |
typo fix and removed grammatical mistakes in
docs/_docs/customizingyourgateway.md