GoCollections/lang/Object.go
2022-03-21 11:02:41 +08:00

13 lines
161 B
Go

package lang
type Object interface {
Equals(e Object) bool
}
func Equals(e Object, t Object) bool {
if e == nil {
return t == nil
}
return e.Equals(t)
}