mirror of
https://github.com/zeromicro/go-zero.git
synced 2026-05-07 15:10:01 +08:00
14 lines
283 B
Go
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)
|
|
}
|