12 lines
181 B
Go
12 lines
181 B
Go
package bootstrap
|
|
|
|
import "strings"
|
|
|
|
// FirstUpper 字符串首字母大写
|
|
func FirstUpper(s string) string {
|
|
if s == "" {
|
|
return ""
|
|
}
|
|
return strings.ToUpper(s[:1]) + s[1:]
|
|
}
|