photoprism/internal/util/strings.go
2019-05-16 08:41:16 +02:00

12 lines
160 B
Go

package util
import (
"unicode"
)
func UcFirst(str string) string {
for i, v := range str {
return string(unicode.ToUpper(v)) + str[i+1:]
}
return ""
}