mirror of
https://github.com/ipfs/kubo.git
synced 2025-09-10 14:34:24 +08:00
10 lines
122 B
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
|
|
}
|