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:
commit
3c72012afd
23 changed files with 8266 additions and 1837 deletions
|
@ -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)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue