Browse Source

Merge branch 'master' of https://git.tetele.net/tgo/helper

master
wuyongyuan 2 years ago
parent
commit
acb19ca55c
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      string.go

+ 1
- 0
string.go View File

@ -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++ {


Loading…
Cancel
Save