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

format interface{} -> any #2692

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

format interface{} -> any #2692

wants to merge 1 commit into from

Conversation

poteto0
Copy link

@poteto0 poteto0 commented Oct 30, 2024

Summary

This PR formats interface{} -> any.
any is an alias for interface{}

var any = interface{}

https://github.com/golang/go/blob/67f131485541f362c8e932cd254982a8ad2cfc09/src/builtin/builtin.go#L97

What was changed

  • interface{} -> any
    • it required go >= 1.18
  • It has nothing to do with performance.

Why the change was made

  • IMO: any is easier than an empty interface literal.

How it was tested

go test ./... -cover

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.

1 participant