Implement filter on tag click

This commit is contained in:
bel
2019-12-07 13:25:14 -07:00
parent 3247a8d7c7
commit de93fa2145
3 changed files with 13 additions and 4 deletions

View File

@@ -9,7 +9,11 @@ import (
func NewUUID() string {
uuid := uuid.New().String()
return Hash(uuid)
}
func Hash(s string) string {
h := fnv.New32a()
h.Write([]byte(uuid))
h.Write([]byte(s))
return fmt.Sprint(h.Sum32())
}