I was reading that goroutines on loop iterators often result in the last value in the loop assignment being used for every iteration. E.g. https://github.com/golang/go/wiki/CommonMistakes#using-goroutines-on-loop-iterator-variables
However, does this only happen for closures, e.g. with anonymous functions?
I can't seem to reproduce the issue with this example https://play.golang.org/p/lpZ-yD1mHu
When I use an anonymous function like this, it recreates the issue https://play.golang.org/p/mDa0Z6mUP8