photoprism/internal/util/strings.go

13 lines
160 B
Go
Raw Normal View History

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