github.com/kelleygo/clashcore@v1.0.2/transport/tuic/congestion_v2/minmax_go121.go (about) 1 //go:build go1.21 2 3 package congestion 4 5 import "cmp" 6 7 func Max[T cmp.Ordered](a, b T) T { 8 return max(a, b) 9 } 10 11 func Min[T cmp.Ordered](a, b T) T { 12 return min(a, b) 13 }