Why are the values not incremented when declaring a structure with mutex in 
goroutines?
https://go.dev/play/p/bPc1bg0AvJ4

And what is the actual point in declaring something in anonymous functions, 
if in my experience it always works without it?

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/7f3aaf03-0705-4e19-b027-68764b185b4dn%40googlegroups.com.

Reply via email to