refactor: group uuid instead of index
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
package number
|
||||
|
||||
import (
|
||||
"cmp"
|
||||
"math"
|
||||
)
|
||||
|
||||
@@ -21,10 +20,3 @@ func fixed(num float64, precision int) float64 {
|
||||
func round(num float64) int {
|
||||
return int(num + math.Copysign(0.5, num))
|
||||
}
|
||||
|
||||
func Max[T cmp.Ordered](x, y T) T {
|
||||
if cmp.Compare(x, y) == 1 {
|
||||
return x
|
||||
}
|
||||
return y
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user