func createBall1000(lball *ballon.All_ball, user *list.Element, base *db.Env) { lstmsg := createMessage1000() usr := user.Value.(*users.User) for i := 0; i < 1000; i++ { ball := new(ballon.Ball) ball.Id_ball = lball.Id_max lball.Id_max++ ball.Edited = true ball.Title = "TEST" + strconv.Itoa(int(ball.Id_ball)) ball.Messages = lstmsg ball.Coord = GetRandomCoord() ball.Itinerary = list.New() ball.Itinerary.PushBack(ball.Coord.Value.(*ballon.Checkpoint)) ball.Followers = list.New() ball.Checkpoints = list.New() ball.Date = time.Now() ball.Possessed = nil ball.Followers = list.New() ball.Followers.PushFront(user) ball.Creator = user ball.Scoord = ball.Coord // ball.InitCoord(ball.Coord.Value.(ballon.Checkpoint).Coord.Lon, ball.Coord.Value.(ballon.Checkpoint).Coord.Lat, int16(0), wd, true) eball := lball.Blist.PushBack(ball) usr.NbrBallSend++ usr.Followed.PushBack(eball) lball.InsertBallon(ball, base) } }