gitlab.com/evatix-go/core@v1.3.55/corecmp/Integer8Ptr.go (about)

     1  package corecmp
     2  
     3  import "gitlab.com/evatix-go/core/corecomparator"
     4  
     5  func Integer8Ptr(left, right *int8) corecomparator.Compare {
     6  	if left == nil && right == nil {
     7  		return corecomparator.Equal
     8  	}
     9  
    10  	if left == nil || right == nil {
    11  		return corecomparator.NotEqual
    12  	}
    13  
    14  	return Integer8(*left, *right)
    15  }