修复自动化package驼峰问题

This commit is contained in:
piexlmax
2023-03-01 22:04:50 +08:00
parent e892e3f9e1
commit a0a35e8253
3 changed files with 20 additions and 9 deletions

17
server/utils/strings.go Normal file
View File

@@ -0,0 +1,17 @@
package utils
import "strings"
func FirstUpper(s string) string {
if s == "" {
return ""
}
return strings.ToUpper(s[:1]) + s[1:]
}
func FirstLower(s string) string {
if s == "" {
return ""
}
return strings.ToLower(s[:1]) + s[1:]
}