Skip to content

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