Map keys must be comparable with ==. Valid key types include:
- All numeric types (int, float64, etc.)
- Strings
- Booleans
- Pointers
- Structs (if all fields are comparable)
- Arrays (if element type is comparable)
Slices, maps, and functions cannot be keys because they're not comparable. You'll get a compiler error if you try.