diff options
Diffstat (limited to 'pkg/stack/min.go')
-rw-r--r-- | pkg/stack/min.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/pkg/stack/min.go b/pkg/stack/min.go new file mode 100644 index 0000000..e97aaed --- /dev/null +++ b/pkg/stack/min.go @@ -0,0 +1,8 @@ +package stack + +func min(a, b int) int { + if a < b { + return a + } + return b +} |