package momap func ReverseMap[K, V comparable](m map[K]V) map[V]K { revMap := make(map[V]K) for k, v := range m { revMap[v] = k } return revMap }