From 8ca34713bd45873833665f745b44cea7c7e41291 Mon Sep 17 00:00:00 2001 From: kenneth <87971572+zhang2092@users.noreply.github.com> Date: Mon, 25 Dec 2023 17:03:07 +0800 Subject: [PATCH] Update shortener.go --- shortener/shortener.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shortener/shortener.go b/shortener/shortener.go index 9b6b737..4c21c02 100644 --- a/shortener/shortener.go +++ b/shortener/shortener.go @@ -31,5 +31,5 @@ func GenerateShortLink(originUrl string, userId string) (string, error) { return "", err } - return result, nil + return result[:8], nil }