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 }