Skip to content

refactor: replace interface{} with any for clarity and modernization#2288

Merged
jribbink merged 1 commit intoonflow:masterfrom
eroderust:master
Mar 12, 2026
Merged

refactor: replace interface{} with any for clarity and modernization#2288
jribbink merged 1 commit intoonflow:masterfrom
eroderust:master

Conversation

@eroderust
Copy link
Contributor

@eroderust eroderust commented Mar 4, 2026

Closes #???

Description

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.


For contributor use:

  • Targeted PR against master branch
  • Linked to Github issue with discussion and accepted design OR link to spec that describes this work
  • Code follows the standards mentioned here
  • Updated relevant documentation
  • Re-reviewed Files changed in the Github PR explorer
  • Added appropriate labels

@codecov-commenter
Copy link

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@eroderust
Copy link
Contributor Author

@janezpodhostnik Thank you for your approval. If there's anything need I to do, please feel free to let me know.

@jribbink jribbink merged commit 3524d1b into onflow:master Mar 12, 2026
13 of 14 checks passed
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.

4 participants