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
|
||
|
}
|