You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
func NullIsEqual[T comparable](a gonull.Nullable[T], b gonull.Nullable[T]) bool {
// If both are not present, they are considered equal
if !a.Present && !b.Present {
return true
}
// If both are present and values are equal, they are considered equal
return a.Present && b.Present && a.Val == b.Val
}
func NewNull[T comparable](value T) gonull.Nullable[T] {
return gonull.Nullable[T](gonull.NewNullable(value))
}
The text was updated successfully, but these errors were encountered:
For example
The text was updated successfully, but these errors were encountered: