How to fix negative WaitGroup counter

type StateScan struct {
StateProc int
FileScan  string
}
var resultsCh = make(chan *StateScan)
var chTicker = make(chan bool)

newScan := &ScanCmd{
	   SuScan:  models.SuScan,
	   ScanDef: models.ScanDef,
	   KeyFile: models.KeyFile,
	   KeyPort: models.KeyPort,
	   TrgDst:  cmdSc.TrgDst,
   }

Sorry, I thought it won’t come in handy, but you cannot execute the runScan command because it is accessing another program in the terminal