Skip to content

replaced interface{} to any #445

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

Merged
merged 4 commits into from
Jun 12, 2025
Merged

Conversation

aachex
Copy link
Contributor

@aachex aachex commented Jun 7, 2025

Hello, I replaced interface{} to its alias any

@mfridman
Copy link
Member

mfridman commented Jun 7, 2025

If you want to go all the way, you can run this command against the root of the repository:

go run golang.org/x/tools/gopls/internal/analysis/modernize/cmd/modernize@latest -fix ./...

Might as well do it once programmatically instead of manually.

@aachex aachex force-pushed the achex/keyfunc-update branch from ba00555 to fc91ab1 Compare June 7, 2025 12:26
@aachex aachex changed the title replaced interface{} to any in KeyFunc replaced interface{} to any Jun 7, 2025
@mfridman mfridman self-requested a review June 7, 2025 13:50
@mfridman
Copy link
Member

mfridman commented Jun 7, 2025

And then look for all comments interface{} and update them to any for completeness. Careful with a crude search/replace, please check those updates make sense.

@mfridman mfridman requested a review from oxisto June 12, 2025 13:00
@oxisto oxisto merged commit 75740f1 into golang-jwt:main Jun 12, 2025
8 checks passed
@MegaMasster
Copy link

Cool! The guy has a great future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants