Compare commits

...

1 Commits

Author SHA1 Message Date
cfbc20367d v0.0.59 2023-01-15 02:27:08 +01:00

View File

@@ -34,3 +34,7 @@ func IsNil(i interface{}) bool {
}
return false
}
func PtrEquals[T comparable](v1 *T, v2 *T) bool {
return (v1 == nil && v2 == nil) || (v1 != nil && v2 != nil && *v1 == *v2)
}