Skip to content

Comments

multi: Modernize interface{} with any.#3614

Merged
davecgh merged 1 commit intodecred:masterfrom
jiangmencity:master
Feb 14, 2026
Merged

multi: Modernize interface{} with any.#3614
davecgh merged 1 commit intodecred:masterfrom
jiangmencity:master

Conversation

@jiangmencity
Copy link
Contributor

@jiangmencity jiangmencity commented Feb 10, 2026

This change replaces occurrences of interface{} with the predeclared identifier any, introduced in Go 1.18 as an alias for interface{}.

As noted in the Go 1.18 Release Notes:
This improves readability and aligns the codebase with modern Go conventions.

Signed-off-by: jiangmencity <jiangmen@52it.net>
@jiangmencity jiangmencity changed the title refactor: replace interface{} with any for clarity and modernization refactor: Replace interface{} with any for clarity and modernization Feb 10, 2026
@davecgh davecgh added this to the 2.2.0 milestone Feb 10, 2026
@davecgh davecgh changed the title refactor: Replace interface{} with any for clarity and modernization multi: Modernize interface{} with any. Feb 10, 2026
Copy link
Member

@davecgh davecgh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR. I don't see any reason not to even though it makes no real difference.

It'll be a little while before it is merged though as a couple of other ones will need to go in first to avoid rebase issues.

@jiangmencity
Copy link
Contributor Author

Thanks for the PR. I don't see any reason not to even though it makes no real difference.

It'll be a little while before it is merged though as a couple of other ones will need to go in first to avoid rebase issues.

Thank you for your approval!

@davecgh davecgh merged commit dea83ee into decred:master Feb 14, 2026
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.

2 participants