kubo/thirdparty/math2/math2.go

10 lines
122 B
Go

package math2
// IntMin returns the smaller of x or y.
func IntMin(x, y int) int {
if x < y {
return x
}
return y
}