gopherdata / gopherdata/gophernotes

Problem with goroutines and closures. Wrong function execution

Offen
#266 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Go
Sterne
4k
Forks
264
Ø Merge
7 T. 21 Std.
Gemergte PRs (30 T.)
1

Beschreibung

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.

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.