Add JsonPrintError

This commit is contained in:
George Suntres
2026-04-14 11:29:05 -04:00
parent 2fccb814c3
commit c0bee95cf6
4 changed files with 105 additions and 1 deletions

10
math.go
View File

@@ -9,3 +9,13 @@ func MathMin[T ~int | ~int8 | ~int16 | ~int32 | ~int64 |
}
return b
}
// MathMax will compare two integers and return the one with the smaller value.
func MathMax[T ~int | ~int8 | ~int16 | ~int32 | ~int64 |
~uint | ~uint8 | ~uint16 | ~uint32 | ~uint64 | ~uintptr |
~float32 | ~float64 | ~string](a, b T) T {
if a > b {
return a
}
return b
}