mirror of https://github.com/status-im/consul.git
16 lines
146 B
Go
16 lines
146 B
Go
|
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
|
||
|
}
|