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

     1  package corecmp
     2  
     3  func IsIntegersEqualPtr(leftSlicePtr, rightSlicePtr *[]int) bool {
     4  	if leftSlicePtr == nil && rightSlicePtr == nil {
     5  		return true
     6  	}
     7  
     8  	if leftSlicePtr == nil || rightSlicePtr == nil {
     9  		return false
    10  	}
    11  
    12  	length := len(*leftSlicePtr)
    13  
    14  	if length != len(*rightSlicePtr) {
    15  		return false
    16  	}
    17  
    18  	return IsIntegersEqual(*leftSlicePtr, *rightSlicePtr)
    19  }