From 326bb52cf5d2c5484473581ed8c6caecb8f69814 Mon Sep 17 00:00:00 2001 From: Cesar Cejudo Date: Fri, 12 Nov 2021 08:48:03 -0600 Subject: [PATCH] add utf8 import --- stringutil/stringutil.go | 1 + 1 file changed, 1 insertion(+) diff --git a/stringutil/stringutil.go b/stringutil/stringutil.go index 17fc888..d7b3fad 100644 --- a/stringutil/stringutil.go +++ b/stringutil/stringutil.go @@ -5,6 +5,7 @@ import ( "regexp" "strings" "unicode" + "unicode/utf8" ) // Truncate returns the "n" left characters of the string.