func main() { rand.Seed(time.Now().UTC().UnixNano()) for i := 0; i < 1; i++ { go loop() } common.WaitKill() }
func main() { rand.Seed(time.Now().UTC().UnixNano()) for i := 0; i < 1; i++ { go func() { for { loop() time.Sleep(time.Second) } }() } common.WaitKill() }