Рет қаралды 27,238
They finally fixed it.
This mistake is one of the more common mistakes you can make when writing Go code. The Go developers have realized this, and so they're going to be resolving it in the next major release of Go.
We don't have to wait until then, however, as we can actually test the fix today.
Become a better developer in 4 minutes: bit.ly/45C7a29 👈
Video Links:
Golang FAQ on the issue: go.dev/doc/faq#closures_and_g...
Blog Post with Fix: go.dev/blog/loopvar-preview
Join this channel to get access to perks:
/ @dreamsofcode
Join Discord: / discord
Join Twitter: / dreamsofcode_io