- parameter supplied to the method 'Add' in the sync.WaitGroup struct must be equal
to the current running goroutine. no more, no less.
- if less than number of current running goroutine, it will leads to unexpected behavior.
- if more than number of current running goroutine, it will leads to deadlock.
// dirty and simple :))
package main
import (