func removeDuplicatesWKOrders(intSlice []WorkerOrder) []WorkerOrder {
	keys := make(map[bson.ObjectId]bool)
	list := []WorkerOrder{}
	for _, entry := range intSlice {
		if _, value := keys[entry.IDProduct]; !value {
			keys[entry.IDProduct] = 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 removeDuplicatesWKOrders(intSlice []WorkerOrder) []WorkerOrder {
	keys := make(map[bson.ObjectId]bool)
	list := []WorkerOrder{}
	for _, entry := range intSlice {
		if _, value := keys[entry.IDProduct]; !value {
			keys[entry.IDProduct] = true
			list = append(list, entry)
		}
	}
	return list
}
func removeDuplicatesWKOrders ( intSlice [ ] WorkerOrder ) [ ] WorkerOrder { keys := make ( map [ bson . ObjectId ] bool ) list := [ ] WorkerOrder { } for _ , entry := range intSlice { if _ , value := keys [ entry . IDProduct ] ; ! value { keys [ entry . IDProduct ] = true list = append ( list , entry ) } } return list }
Removes the elements duplicated in the array
Removes the elements duplicated in the array