sing-quic/congestion_meta2/minmax_go121.go
2023-10-06 19:36:17 +08:00

13 lines
166 B
Go

//go:build go1.21
package congestion
import "cmp"
func Max[T cmp.Ordered](a, b T) T {
return max(a, b)
}
func Min[T cmp.Ordered](a, b T) T {
return min(a, b)
}