The post linked by @borkent.bsky.social does a great job explaining the scope change & behavior.
The fix pre 1.22 was to make a copy of the loop variable. I think passing a param to the goroutine would fix it. Or use a go version >=1.22.
The post linked by @borkent.bsky.social does a great job explaining the scope change & behavior.
The fix pre 1.22 was to make a copy of the loop variable. I think passing a param to the goroutine would fix it. Or use a go version >=1.22.
I need to give more attention to content on the go.dev blog. 🙂
I need to give more attention to content on the go.dev blog. 🙂
It's a great educational tool and could be a fun way to engage the kids when outdoors. It worked on me at least.
It's a great educational tool and could be a fun way to engage the kids when outdoors. It worked on me at least.
github.com/cespare/xxhash
github.com/cespare/xxhash
go.dev/blog/contain...
go.dev/blog/contain...
github.com/tcgoetz/Garm...
github.com/tcgoetz/Garm...
🤯 I thought it was using an external store. Awesome.
Certainly a project to keep an eye on.
🤯 I thought it was using an external store. Awesome.
Certainly a project to keep an eye on.