updated the installer so that it should actually work
Some checks failed
Build / build (push) Failing after 5m23s

This commit is contained in:
tumillanino
2025-11-11 18:57:02 +11:00
parent a7bd4d9457
commit 33dd952ad4
583 changed files with 161651 additions and 67 deletions

View File

@@ -0,0 +1,13 @@
package utils
import "golang.org/x/exp/constraints"
func Clamp[T constraints.Ordered](val, min, max T) T {
if val < min {
return min
}
if val > max {
return max
}
return val
}