mirror of
https://github.com/grafana/grafana.git
synced 2024-12-28 01:41:24 -06:00
dff84f6a31
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
10 lines
121 B
Go
10 lines
121 B
Go
package util
|
|
|
|
// MinInt returns the smaller of x or y.
|
|
func MinInt(x, y int) int {
|
|
if x > y {
|
|
return y
|
|
}
|
|
return x
|
|
}
|