Types

The map key can be of any comparable type. Some of the comparable types defined by the go specification are:


boolean
numeric
string,
pointer
channel
interface types
structs // if all field types are comparable
array // if element types are comparable
                        
types.go