After reading a related question about using slices in maps, I became curious about equality in Go.
I know it\'s possible to override the equals method of a
equals
No, this is not user-definable. Go has strict rules what counts as equal, and even what is comparable which itself is based on assignability. Take a look at the Comparison operators section of the spec.