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

     1  package corecmp
     2  
     3  import "gitlab.com/evatix-go/core/corecomparator"
     4  
     5  func Integer32(left, right int32) corecomparator.Compare {
     6  	if left == right {
     7  		return corecomparator.Equal
     8  	} else if left < right {
     9  		return corecomparator.LeftLess
    10  	} else if left > right {
    11  		return corecomparator.LeftGreater
    12  	}
    13  
    14  	return corecomparator.NotEqual
    15  }