From 6559db4b47bcae36f8edfa22afe6cb1140443728 Mon Sep 17 00:00:00 2001 From: guzeng Date: Wed, 6 Oct 2021 23:06:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=A9=BC=E5=B3=B0=E8=BD=AC?= =?UTF-8?q?=E6=8D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- string.go | 1 + 1 file changed, 1 insertion(+) diff --git a/string.go b/string.go index 49da990..1ef416e 100755 --- a/string.go +++ b/string.go @@ -169,6 +169,7 @@ func GetRandomNumber(length int) string { * 字符串转大驼峰 ios_bbbbbbbb -> IosBbbbbbbbb */ func StrFirstToUpper(str string) string { + str = strings.ReplaceAll(str, "`", "") temp := strings.Split(str, "_") var upperStr string for y := 0; y < len(temp); y++ {