12 lines
160 B
Go
12 lines
160 B
Go
package util
|
|
|
|
func Min(input ...int64) int64 {
|
|
min := input[0]
|
|
for i := 1; i < len(input); i++ {
|
|
if input[i] < min {
|
|
min = input[i]
|
|
}
|
|
}
|
|
return min
|
|
}
|