From c913c2ae46fd81a3274ef16c64c78ea2ed421de8 Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Fri, 12 Nov 2021 15:26:16 +0100 Subject: Refactoring : isolate stack manipulation into their own package --- pkg/stack/min.go | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 pkg/stack/min.go (limited to 'pkg/stack/min.go') 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 +} -- cgit v1.2.3