Skip to content

all: use modern Go syntax (e.g. any instead of interface{})#59

Merged
emidoots merged 2 commits intohexops:mainfrom
abhinav:modernize
Feb 9, 2026
Merged

all: use modern Go syntax (e.g. any instead of interface{})#59
emidoots merged 2 commits intohexops:mainfrom
abhinav:modernize

Conversation

@abhinav
Copy link
Copy Markdown
Contributor

@abhinav abhinav commented Aug 23, 2025

This change was generated by running:

go run golang.org/x/tools/gopls/internal/analysis/modernize/cmd/modernize@latest -fix -test ./...

Two things are changed:

  • All interface{} types are changed to any.
    This has been available since Go 1.18.
  • Stops capturing loop variables for closures inside loops.
    This has been unnecessary since Go 1.22.
    (https://go.dev/blog/loopvar-preview)

  • By selecting this checkbox, I agree to license my contributions to this project under the license(s) described in the LICENSE file, and I have the right to do so or have received permission to do so by an employer or client I am producing work for whom has this right.

This change was generated by running:

```
go run golang.org/x/tools/gopls/internal/analysis/modernize/cmd/modernize@latest -fix -test ./...
```

Two things are changed:

- All `interface{}` types are changed to `any`.
  This has been available since Go 1.18.
- Stops capturing loop variables for closures inside loops.
  This has been unnecessary since Go 1.22.
  (https://go.dev/blog/loopvar-preview)
Copy link
Copy Markdown
Member

@emidoots emidoots 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 high-quality PRs!

@emidoots emidoots merged commit 6a3ee21 into hexops:main Feb 9, 2026
3 checks passed
@codecov-commenter
Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

❌ Patch coverage is 40.00000% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 34.37%. Comparing base (030d467) to head (dbbaedc).
⚠️ Report is 10 commits behind head on main.

Files with missing lines Patch % Lines
expect.go 0.00% 3 Missing ⚠️
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #59      +/-   ##
==========================================
+ Coverage   32.91%   34.37%   +1.46%     
==========================================
  Files           7        7              
  Lines         398      448      +50     
==========================================
+ Hits          131      154      +23     
- Misses        238      263      +25     
- Partials       29       31       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

3 participants