Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

chore: useany in place ofinterface{}#3961

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
snprajwal wants to merge2 commits intosqlc-dev:main
base:main
Choose a base branch
Loading
fromsnprajwal:use-any

Conversation

snprajwal
Copy link

@snprajwalsnprajwal commentedMay 13, 2025
edited
Loading

This addresses the lint raised by gopls on sqlc's generated Go files for modernizing the usage of an empty interface for theany type.

@dosubotdosubotbot added size:MThis PR changes 30-99 lines, ignoring generated files. 🔧 golang labelsMay 13, 2025
@dosubotdosubotbot added size:LThis PR changes 100-499 lines, ignoring generated files. and removed size:MThis PR changes 30-99 lines, ignoring generated files. labelsMay 13, 2025
@snprajwal
Copy link
Author

Interesting, it looks like the generated names for constants are not escaped

Also adds `any` as a reserved keyword, as it was introduced in Go 1.18.Signed-off-by: Prajwal S N <prajwalnadig21@gmail.com>
Signed-off-by: Prajwal S N <prajwalnadig21@gmail.com>
@snprajwal
Copy link
Author

@kyleconroy I just realised this might be noisier than needed, since the linter ignores generated files. Would you want me to split the bug fix out into a separate PR and close this?

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
size:LThis PR changes 100-499 lines, ignoring generated files.🔧 golang
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

1 participant
@snprajwal

[8]ページ先頭

©2009-2025 Movatter.jp