Go Time: Golang, Software Engineering cover image

Answering questions for the Go-curious

Go Time: Golang, Software Engineering

CHAPTER

Shadowing

If you don't re assign the variable to something that is more locally scope to that, all o the go routines will basically see the last value of the loop. This always burns me when i'm doing unit testtings. There are other ways to handle that as well thatare a bit more explicit. But that's detle where i think you can rite shadowing is used the most often to like, make it so that it's not a bug and actually something that's helpful for you.

00:00
Transcript
Play full episode

Remember Everything You Learn from Podcasts

Save insights instantly, chat with episodes, and build lasting knowledge - all powered by AI.
App store bannerPlay store banner