mirror of
https://github.com/SagerNet/sing.git
synced 2025-04-03 03:47:38 +03:00
15 lines
167 B
Go
15 lines
167 B
Go
//go:build go1.21
|
|
|
|
package common
|
|
|
|
import (
|
|
"cmp"
|
|
)
|
|
|
|
func Min[T cmp.Ordered](x, y T) T {
|
|
return min(x, y)
|
|
}
|
|
|
|
func Max[T cmp.Ordered](x, y T) T {
|
|
return max(x, y)
|
|
}
|