Exemple #1
0
func Contains(obj types.Identifiable) bool {
	_mutex.RLock()
	defer _mutex.RUnlock()

	_, found := _data[obj.GetId()]
	return found
}
Exemple #2
0
func Remove(obj types.Identifiable) {
	RemoveId(obj.GetId())
}