Implement filter on tag click
This commit is contained in:
@@ -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())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user