mirror of
https://github.com/prometheus/statsd_exporter.git
synced 2024-07-02 19:25:46 +00:00
18 lines
183 B
Go
18 lines
183 B
Go
package fsm
|
|
|
|
// min and max implementation for integer
|
|
|
|
func min(x, y int) int {
|
|
if x < y {
|
|
return x
|
|
}
|
|
return y
|
|
}
|
|
|
|
func max(x, y int) int {
|
|
if x > y {
|
|
return x
|
|
}
|
|
return y
|
|
}
|