summaryrefslogtreecommitdiff
path: root/utilities/utilities.go
diff options
context:
space:
mode:
Diffstat (limited to 'utilities/utilities.go')
-rw-r--r--utilities/utilities.go11
1 files changed, 5 insertions, 6 deletions
diff --git a/utilities/utilities.go b/utilities/utilities.go
index 7e26ab9..76acbd2 100644
--- a/utilities/utilities.go
+++ b/utilities/utilities.go
@@ -123,10 +123,9 @@ func RandBetween(max int) int {
return rand.New(rand.NewSource(int64(time.Now().Nanosecond()))).Int() % max
}
-type NotImplemented struct {
- Functionality string
-}
-
-func (ni *NotImplemented) Error() string {
- return fmt.Sprintf("%v not implemented.\n", ni.Functionality)
+func Max(x, y uint64) uint64 {
+ if x > y {
+ return x
+ }
+ return y
}