Skip to content

Conversation

@abhinav
Copy link

@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)
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