1
0
mirror of https://github.com/fumiama/emozi.git synced 2026-06-08 12:00:37 +08:00

feat: add cmd

This commit is contained in:
源文雨
2024-02-15 17:14:56 +09:00
parent 96223b1b74
commit 7e641e891e
11 changed files with 712 additions and 488 deletions

View File

@@ -19,7 +19,11 @@ type EmoziString string
func WrapRawEmoziString(s string) EmoziString {
rs := []rune(s)
if len(rs) < 4 {
return ""
diff := 4 - len(rs)
for i := 0; i < diff; i++ {
rs = append(rs, )
}
s = string(rs)
}
h := crc32.NewIEEE()
h.Write(base14.StringToBytes(s))