W
Size: a a a
М
AS
ЗА
ЗА
E
ЗА
D
Habib ZAM
deleted. Reason: external link (?)OY
Y
var wg sync.WaitGroupкидает negative WaitGroup counter
for rows.Next() {
var s service
err := rows.StructScan(&s)
if err != nil {
return err
}
wg.Add(1)
importServiceGoroutine(s, wg)
}
wg.Wait()
func importServiceGoroutine(s utmService, wg sync.WaitGroup) {
defer wg.Done()
}
DC
а
var wg sync.WaitGroupкидает negative WaitGroup counter
for rows.Next() {
var s service
err := rows.StructScan(&s)
if err != nil {
return err
}
wg.Add(1)
importServiceGoroutine(s, wg)
}
wg.Wait()
func importServiceGoroutine(s utmService, wg sync.WaitGroup) {
defer wg.Done()
}