aboutsummaryrefslogtreecommitdiffstats
path: root/src/misc.go
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/misc.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/misc.go b/src/misc.go
new file mode 100644
index 0000000..e1244d6
--- /dev/null
+++ b/src/misc.go
@@ -0,0 +1,8 @@
+package main
+
+func min(a uint, b uint) uint {
+ if a > b {
+ return b
+ }
+ return a
+}