Can anybody show me by giving a simple example code how Wait Group works or can be implemented (better if it is given for example like this)? Thanks.
I found an answer of it i.e. on Mutual Exclusion of Concurrent Go Routine's. And code is on http://play.golang.org/p/bdBRtA6vS7. Thanks.
I don't think wait group (or sync-mutex) can be implemented for your example.
It is implemented like this. :)