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