-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
all: format with Go 1.19 #1130
all: format with Go 1.19 #1130
Conversation
7bc5411
to
63fdc16
Compare
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, except the C example that must be indented.
doc.go
Outdated
return; | ||
} | ||
sqlite3_result_int(context, 1); | ||
} |
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.
Lines 39 to 53 must be indented further.
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.
Good catch - fixed.
@mattn Please consider merging this. This is blocking further efforts aiming to improve documentation. |
Update Go source files to use the '//go:build' lines introduced by Go 1.17 and the doc comment formatting introduced by Go 1.19. This formatting is not changed by Go 1.20. Note: doc.go had to be changed in some places to remove double indentation.
Codecov ReportAttention:
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## master #1130 +/- ##
==========================================
- Coverage 46.80% 46.59% -0.22%
==========================================
Files 12 12
Lines 1534 1526 -8
==========================================
- Hits 718 711 -7
+ Misses 673 672 -1
Partials 143 143
☔ View full report in Codecov by Sentry. |
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
@mattn We definitely need this change merged before submitting further documentation improvements! |
Closing since #1208 took care of this. |
Update Go source files to use the '//go:build' lines introduced by Go 1.17 and the doc comment formatting introduced by Go 1.19. This formatting is not changed by Go 1.20.
Note:
doc.go
and the*userauth*
files had to be manually changed in some places to fix indentation.This does not change how
godoc
(at least with Go 1.19) renders the package documentation and is backwards compatible (i.e. earlier versions ofgofmt
will leave this code unchanged - tested with 1.17).