summaryrefslogtreecommitdiff
path: root/utilities.go
diff options
context:
space:
mode:
authorhorus_arch2015-03-20 01:01:30 +0100
committerhorus_arch2015-03-20 01:01:30 +0100
commit039fb0ce71d132a1dfe93b516bc5953dcb61285e (patch)
tree0680bf2d0d42a7c8f4f5dfe0b579277edfc38198 /utilities.go
parent77b167ceae8904d827571a0ba7bfa13fac28a40e (diff)
downloadfreemail-039fb0ce71d132a1dfe93b516bc5953dcb61285e.tar.gz
Bundling functionality in server.go and improving code flow.
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
+}