Original post

I’m using the Goland IDE, it’s got a great visual debugger. I have a few sync.WaitGroup s that I need to determine the state of when execution is paused (see screenshot below), but I can’t glean what this information means from the docs.

wgDone

Can anyone help me decipher the exact meaning of this? I’m assuming that whenever the state1 is [3]uint32{0, 0, 0} then wgDone is not waiting on anything and wgDone.Wait() would immediately resume execution. Other than that, I’m not certain the exact meaning of these uint32 in their positions.