summaryrefslogtreecommitdiffstats
path: root/utils/math.go
diff options
context:
space:
mode:
authorSean E. Russell <seanerussell@gmail.com>2020-02-13 10:15:52 -0600
committerSean E. Russell <seanerussell@gmail.com>2020-02-13 10:15:52 -0600
commit7e5c0c969c223973335c6fae5432411afc3fb060 (patch)
tree7f785ba4f692b81806209cb5f0c959e86efdba70 /utils/math.go
parent4bfe0251a8893ed08654d59b8a8b8182958e907f (diff)
Fixes the directory structure.
Diffstat (limited to 'utils/math.go')
-rw-r--r--utils/math.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/utils/math.go b/utils/math.go
new file mode 100644
index 0000000..b710ee6
--- /dev/null
+++ b/utils/math.go
@@ -0,0 +1,8 @@
+package utils
+
+func MaxInt(a, b int) int {
+ if a > b {
+ return a
+ }
+ return b
+}