From 0702ebcc4caf13a2e11da33d344aebc0f4e83eba Mon Sep 17 00:00:00 2001 From: Vladimir Barsukov Date: Fri, 26 Apr 2024 13:36:12 +0200 Subject: [PATCH] fix --- zguid/zguid.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zguid/zguid.go b/zguid/zguid.go index ea99b09..45f368c 100644 --- a/zguid/zguid.go +++ b/zguid/zguid.go @@ -13,5 +13,5 @@ func New() string { func Hash(a any) string { b := md5.Sum([]byte(fmt.Sprintf("%v", a))) - return fmt.Sprintf("%x%x%x%x-%x%x-%x%x-%x%x-%x%x%x%x%x%x", b[0], b[1], b[2], b[3], b[4], b[5], b[6], b[7], b[8], b[9], b[10], b[11], b[12], b[13], b[14], b[15]) + return fmt.Sprintf("%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%02x%02x%02x", b[0], b[1], b[2], b[3], b[4], b[5], b[6], b[7], b[8], b[9], b[10], b[11], b[12], b[13], b[14], b[15]) } -- GitLab