mirror of
https://github.com/junegunn/fzf.git
synced 2026-10-08 21:15:26 +08:00
1 parent
cf8afc527e
commit
2ccdf21a1f
5 files changed
+43
-5
No files matched your search
@@ -21,6 +21,14 @@ func Max(first int, items ...int) int {
|
||||
return max
|
||||
}
|
||||
|
||||
// Min returns the smallest integer
|
||||
func Min(first int, second int) int {
|
||||
if first <= second {
|
||||
return first
|
||||
}
|
||||
return second
|
||||
}
|
||||
|
||||
// Min32 returns the smallest 32-bit integer
|
||||
func Min32(first int32, second int32) int32 {
|
||||
if first <= second {
|
||||
|
||||
Reference in new issue
Block a user