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

Prefer use of any over interface{} throughout the code base #3698

Closed
tjayrush opened this issue May 22, 2024 · 1 comment
Closed

Prefer use of any over interface{} throughout the code base #3698

tjayrush opened this issue May 22, 2024 · 1 comment

Comments

@tjayrush
Copy link
Member

We did a lot of this as part of version 3.0.0, but there are a few remaining ocurences of interface{} over any.

any is an "alias" of the old-fashioned interface{}. interface{} can be replaced wherever it occurs. any is more clear as to its purpose, which is the same as interface{}.

We should use any wherever we can.

@tjayrush
Copy link
Member Author

Done

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

No branches or pull requests

1 participant