Hello
I can’t understand where the last value of the parseXMLResultFile function goes, the function itself is executed as many times as necessary, but the last execution it does not return a result, can someone explain what is wrong?
…
go func() {
for res := range resultsCh {
if res.stateProc == 0 {
host, err := parseXMLResultFile(res.fileScan) // This function does not return the last result, although the last execution is in progress
if err != nil {
log.Printf(“Parsing file not done: %s”, err)
}
results = append(results, host)
}
}
}()
…