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

Golang

2206 readers
1 users here now

This is a community dedicated to the go programming language.

Useful Links:

Rules:

founded 1 year 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.