mirror of
https://github.com/kemko/nomad.git
synced 2026-01-03 00:45:43 +03:00
17 lines
203 B
Go
17 lines
203 B
Go
// These functions are coming from consul/lib/math.go
|
|
package helper
|
|
|
|
func MaxInt(a, b int) int {
|
|
if a > b {
|
|
return a
|
|
}
|
|
return b
|
|
}
|
|
|
|
func MinInt(a, b int) int {
|
|
if a > b {
|
|
return b
|
|
}
|
|
return a
|
|
}
|