fix: imported cmp package

This commit is contained in:
loveuer 2025-01-01 23:04:09 -08:00
parent 3018bfb836
commit 0ada03ee80

View File

@ -1,19 +0,0 @@
package tool
import "cmp"
func Min[T cmp.Ordered](a, b T) T {
if a <= b {
return a
}
return b
}
func Max[T cmp.Ordered](a, b T) T {
if a >= b {
return a
}
return b
}