Really? Tell me what the output of this short bit of golang code is before running it then if it's so obvious. The first one is only a for loop, nothing else, the second output line is a for loop and some channels + goroutines, but nothing too complicated.
https://play.golang.org/p/g4Pd5ebrWp
I've seen these issues in the wild more times than I care to admit. Go is a trashfire. They wouldn't compile in rust.