1
0
Fork 0
mirror of https://github.com/anyproto/anytype-heart.git synced 2025-06-12 02:30:53 +09:00

Merge pull request #1442 from anytypeio/feat-kanban-groups-2a6zuez

[feat-kanban-groups-2a6zuez] kanban groups - statuses and tags only
This commit is contained in:
pzavyalov 2022-07-12 19:04:26 +06:00 committed by GitHub
commit 3c72012afd
Signed by: github
GPG key ID: 4AEE18F83AFDEB23
23 changed files with 8266 additions and 1837 deletions

View file

@ -1,6 +1,9 @@
package text
import (
"crypto/md5"
"fmt"
"strings"
"unicode"
"unicode/utf16"
)
@ -51,3 +54,9 @@ func StrToUTF16(str string) []uint16 {
func UTF16ToStr(b []uint16) string {
return string(utf16.Decode(b))
}
func SliceHash(keys []string) string {
s := strings.Join(keys, "_")
sum := md5.Sum([]byte(s))
return fmt.Sprintf("%x", sum)
}