open-consul/lib/math.go

16 lines
146 B
Go
Raw Normal View History

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