Skip to content
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

Rewrite interface{} to any #2535

Merged
merged 2 commits into from
Oct 25, 2022
Merged

Rewrite interface{} to any #2535

merged 2 commits into from
Oct 25, 2022

Conversation

johanbrandhorst
Copy link
Collaborator

Go 1.18 introduced generics, but it also introduced an alias for interface{} called any. It's shorter, more descriptive and already adopted across the standard library. We should probably also use it.

These changes were created using

$ gofmt -w -r 'interface{} -> any' . && make gen

@johanbrandhorst
Copy link
Collaborator Author

This has 4 approvals and zero rejections so I'm going to merge it :)

@johanbrandhorst johanbrandhorst merged commit f57454b into main Oct 25, 2022
@johanbrandhorst johanbrandhorst deleted the jbrandhorst-use-any branch October 25, 2022 23:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant