Files
go-zero/core/mathx/int.go
2025-05-22 15:19:13 +00:00

14 lines
283 B
Go

package mathx
// MaxInt returns the larger one of a and b.
// Deprecated: use builtin max instead.
func MaxInt(a, b int) int {
return max(a, b)
}
// MinInt returns the smaller one of a and b.
// Deprecated: use builtin min instead.
func MinInt(a, b int) int {
return min(a, b)
}