Go for range
Go
1.22 より仕様が変わった
Fixing For Loops in Go 1.22 - The Go Programming Language