Skip to content

Conversation

@chavacava
Copy link
Collaborator

GO 1.18 includes a type alias for interface{}: any.

Now, the whole codebase of GO uses any in place of interface{}
This rule spots instances of interface{} and proposes to change it into any

Refs: GO 1.18 release note and GO codebase commit replacing ìnterfacebyany`

@chavacava chavacava added the rule proposal Issue proposing a new rule label Mar 29, 2022
@chavacava chavacava requested a review from mgechev March 29, 2022 17:01
@mgechev mgechev merged commit 671c55d into master Mar 29, 2022
@mgechev mgechev deleted the rule/use-any branch March 29, 2022 18:25
subham-deepsource pushed a commit to DeepSourceCorp/revive that referenced this pull request Apr 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

rule proposal Issue proposing a new rule

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants