this post was submitted on 19 Sep 2023
34 points (100.0% liked)

Golang

2220 readers
1 users here now

This is a community dedicated to the go programming language.

Useful Links:

Rules:

founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] mrkite@programming.dev 7 points 1 year ago

So it's not really a problem with for loops, it's a problem with closures inside for loops.