I have been confused about this ever since I started working with Go:

https://gist.github.com/ORESoftware/a6243ce1039cea7e49a22ec8daf90a82


we can do this:

var wg sync.WaitGroup


instead of having to write this:

var wg sync.WaitGroup = sync.WaitGroup{}  // is this initialization implicit, 
and why?



anyone know why, or what it's called? Is this intialization implicit / 
automatic and what is the reasoning for this?

-alex

-- 
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/2bc416f8-6f7d-464f-ad2e-c4fa076d5f83%40googlegroups.com.

Reply via email to