3
0

Messaging repo ported to store and cleaned

This commit is contained in:
Denis Arh
2020-09-05 09:15:49 +02:00
parent 677469c5ca
commit 10b1dc09e9
55 changed files with 948 additions and 1816 deletions

View File

@@ -24,6 +24,15 @@ func ToStringBoolMap(s []string) (h map[string]bool) {
return
}
func ToUint64BoolMap(u []uint64) (h map[uint64]bool) {
h = make(map[uint64]bool)
for i := 0; i < len(u); i++ {
h[u[i]] = true
}
return
}
func HasString(ss []string, s string) bool {
for i := range ss {
if ss[i] == s {