diff options
| author | Horus3 | 2015-03-20 17:30:11 +0100 |
|---|---|---|
| committer | Horus3 | 2015-03-20 17:30:11 +0100 |
| commit | 410504e069d37c522dca6bf820e9fc4cea2de871 (patch) | |
| tree | 75db9c44b5e852652fd8e54b8d4db91147fb77a2 /utilities.go | |
| parent | 9ab1f49c4c4aa5dcaa0dd50ec606ca06ca071c71 (diff) | |
| download | freemail-410504e069d37c522dca6bf820e9fc4cea2de871.tar.gz | |
Check if domain points to mail server. Add http handler to create a new entry.
Diffstat (limited to 'utilities.go')
| -rw-r--r-- | utilities.go | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/utilities.go b/utilities.go index 60423dc..199a8b9 100644 --- a/utilities.go +++ b/utilities.go @@ -26,3 +26,17 @@ func CompareStrings(strs ...string) bool { } return true } + +// Checks for equality in two slices from typ IP +/* +func CompareIPs(a, b []IP) bool { + if len(a) != len(b) { + return false + } + for k := range a { + if a[k] != b[i] { + return false + } + } +} +*/ |
