func removeDuplicates(intSlice []bson.ObjectId) []bson.ObjectId {
	keys := make(map[bson.ObjectId]bool)
	list := []bson.ObjectId{}
	for _, entry := range intSlice {
		if _, value := keys[entry]; !value {
			keys[entry] = true
			list = append(list, entry)
		}
	}
	return list
}
// Removes the elements duplicated in the array
Removes the elements duplicated in the array
// Removes the elements duplicated in the array
func removeDuplicates(intSlice []bson.ObjectId) []bson.ObjectId {
	keys := make(map[bson.ObjectId]bool)
	list := []bson.ObjectId{}
	for _, entry := range intSlice {
		if _, value := keys[entry]; !value {
			keys[entry] = true
			list = append(list, entry)
		}
	}
	return list
}
func removeDuplicates ( intSlice [ ] bson . ObjectId ) [ ] bson . ObjectId { keys := make ( map [ bson . ObjectId ] bool ) list := [ ] bson . ObjectId { } for _ , entry := range intSlice { if _ , value := keys [ entry ] ; ! value { keys [ entry ] = true list = append ( list , entry ) } } return list }
Removes the elements duplicated in the array
Removes the elements duplicated in the array