file-store/pkg/util/main.go

12 lines
160 B
Go
Raw Normal View History

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
}