gitlab.com/evatix-go/core@v1.3.55/corecmp/Byte.go (about) 1 package corecmp 2 3 import "gitlab.com/evatix-go/core/corecomparator" 4 5 func Byte(left, right byte) 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 }