feat: version info analytics (#363)

* feat: version info analytics

* refactor: don't create new client everytime
This commit is contained in:
Stavros
2025-09-19 14:44:22 +03:00
committed by GitHub
parent 51937906ad
commit 50105e4e9d
5 changed files with 109 additions and 42 deletions

View File

@@ -101,8 +101,7 @@ func CheckFilter(filter string, str string) bool {
return false
}
func GenerateIdentifier(str string) string {
func GenerateUUID(str string) string {
uuid := uuid.NewSHA1(uuid.NameSpaceURL, []byte(str))
uuidString := uuid.String()
return strings.Split(uuidString, "-")[0]
return uuid.String()
}