github.com/metacubex/mihomo@v1.18.5/transport/tuic/congestion/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  }