github.com/enetx/g@v1.0.80/cmp/cmp.go (about)

     1  package cmp
     2  
     3  import "cmp"
     4  
     5  // Cmp compares two ordered values and returns the result as an Ordering value.
     6  func Cmp[T cmp.Ordered](x, y T) Ordering { return Ordering(cmp.Compare(x, y)) }