gophernotes icon indicating copy to clipboard operation
gophernotes copied to clipboard

Problem with goroutines and closures. Wrong function execution

Open gerzin opened this issue 3 months ago • 0 comments

I'm running inside the dockerized version running the command from the readme,

Image

I should get 10 11 12 but instead I get 12 12 12. The code works fine if I make it into a standalone go program.

gerzin avatar Sep 10 '25 14:09 gerzin