summaryrefslogtreecommitdiff
path: root/utilities.go
diff options
context:
space:
mode:
Diffstat (limited to 'utilities.go')
-rw-r--r--utilities.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/utilities.go b/utilities.go
index a090ea7..60423dc 100644
--- a/utilities.go
+++ b/utilities.go
@@ -14,3 +14,15 @@ func Md5Hash(content string) string {
return hash
}
+
+// Checks for equality in strings and returns true all are equal
+func CompareStrings(strs ...string) bool {
+ for k, _ := range strs {
+ if k < len(strs)-1 {
+ if strs[k] != strs[k+1] {
+ return false
+ }
+ }
+ }
+ return true
+}