From ff8d54082bcc1f6c6d969871f11120cb3c6b63a4 Mon Sep 17 00:00:00 2001 From: Prakash Kumar Date: Wed, 30 Apr 2025 12:35:54 +0530 Subject: [PATCH] GenerateUCID common func --- common-lib/utils/CommonUtils.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/common-lib/utils/CommonUtils.go b/common-lib/utils/CommonUtils.go index 17ccda061..97c7b9051 100644 --- a/common-lib/utils/CommonUtils.go +++ b/common-lib/utils/CommonUtils.go @@ -52,6 +52,11 @@ func Generate(size int) string { return str } +// GenerateUCID generates UCID of len 16 +func GenerateUCID() string { + return Generate(16) +} + func hasScheme(url string) bool { return len(url) >= 7 && (url[:7] == "http://" || url[:8] == "https://") }