fix: support network manager connection profiles (#23469)

Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
This commit is contained in:
Jian Qiu
2025-10-03 09:25:34 +08:00
committed by GitHub
co-authored by Qiu Jian
parent 30b8491ef5
commit 77aa8a7f96
52 changed files with 6978 additions and 91 deletions
+10
View File
@@ -17,6 +17,10 @@ package stringutils2
import (
"crypto/sha256"
"fmt"
"strings"
"github.com/google/uuid"
"github.com/zeebo/xxh3"
)
func GenId(ids ...string) string {
@@ -26,3 +30,9 @@ func GenId(ids ...string) string {
}
return fmt.Sprintf("%x", h.Sum(nil))
}
func GenUuid(ids ...string) string {
h := xxh3.HashString128(strings.Join(ids, "")).Bytes()
guid, _ := uuid.FromBytes(h[:])
return guid.String()
}