diff options
Diffstat (limited to 'vendor/github.com/jesseduffield/lazycore/pkg/utils/utils.go')
-rw-r--r-- | vendor/github.com/jesseduffield/lazycore/pkg/utils/utils.go | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/vendor/github.com/jesseduffield/lazycore/pkg/utils/utils.go b/vendor/github.com/jesseduffield/lazycore/pkg/utils/utils.go new file mode 100644 index 000000000..9fa933762 --- /dev/null +++ b/vendor/github.com/jesseduffield/lazycore/pkg/utils/utils.go @@ -0,0 +1,16 @@ +package utils + +// Min returns the minimum of two integers +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 +} |