entity.go
func NewBasics(amount int) []BasicEntity {
	entities := make([]BasicEntity, amount)

	lastID := atomic.AddUint64(&idInc, uint64(amount))
	for i := 0; i < amount; i++ {
		entities[i].id = lastID - uint64(amount) + uint64(i) + 1
	}

	return entities
}
func NewBasics(amount int) []BasicEntity {
	entities := make([]BasicEntity, amount)

	lastID := atomic.AddUint64(&idInc, uint64(amount))
	for i := 0; i < amount; i++ {
		entities[i].id = lastID - uint64(amount) + uint64(i) + 1
	}

	return entities
}
func NewBasics ( amount int ) [ ] BasicEntity { entities := make ( [ ] BasicEntity , amount ) lastID := atomic . AddUint64 ( & idInc , uint64 ( amount ) ) for i := 0 ; i < amount ; i ++ { entities [ i ] . id = lastID - uint64 ( amount ) + uint64 ( i ) + 1 } return entities }
// NewBasics creates an amount of new entities with a new unique identifiers. It
// is safe for concurrent use, and performs better than NewBasic for large
// numbers of entities.
NewBasics creates an amount of new entities with a new unique identifiers . It is safe for concurrent use and performs better than NewBasic for large numbers of entities .