16 lines
153 B
Go
16 lines
153 B
Go
package shared
|
|
|
|
func Max(x int, y int) int {
|
|
if x >= y {
|
|
return x
|
|
}
|
|
return y
|
|
}
|
|
|
|
func Min(x int, y int) int {
|
|
if x <= y {
|
|
return x
|
|
}
|
|
return y
|
|
}
|