Enable `loopvar` feature of go for EG
This loopvar feature of go 1.22 requires enable env `GOEXPERIMENT=loopvar` (default closed) explicitly. Maybe we could consider enable this feature for other places as well.
Originally posted by @shawnh2 in https://github.com/envoyproxy/gateway/issues/2739#issuecomment-2068969587
The usage of this feature requires setting go env specificly, for example GOEXPERIMENT=loopvar go test.
I'm very interested in this issue, please assign it to me.
the loopvar can be detected by https://golangci-lint.run/usage/linters#copyloopvar
This issue has been automatically marked as stale because it has not had activity in the last 30 days.
@shawnh2 is this issue still relevant? I would like to work on this
@Awinr are you working on this?
@shawnh2 is this issue still relevant? I would like to work on this
Yes, thinks for taking this issue, assign you.