diff options
author | Mathias Hall-Andersen <mathias@hall-andersen.dk> | 2017-05-30 22:36:49 +0200 |
---|---|---|
committer | Mathias Hall-Andersen <mathias@hall-andersen.dk> | 2017-05-30 22:36:49 +0200 |
commit | 1eebdf88a320824b8f155caa1d5c725c38d51de8 (patch) | |
tree | c405eff6416526a6627afa84291fa27660148f1a /src/misc.go | |
parent | 6bd0b2fbe220a23c2370ebda01f7968d3bea0118 (diff) |
Beginning work on UAPI and routing table
Diffstat (limited to 'src/misc.go')
-rw-r--r-- | src/misc.go | 8 |
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 +} |