UcFirst converts the first character of a string into uppercase.
(str string)
| 11 | |
| 12 | // UcFirst converts the first character of a string into uppercase. |
| 13 | func UcFirst(str string) string { |
| 14 | if str == "" { |
| 15 | return "" |
| 16 | } |
| 17 | |
| 18 | s := []rune(str) |
| 19 | |
| 20 | return string(unicode.ToUpper(s[0])) + string(s[1:]) |
| 21 | } |
| 22 | |
| 23 | // Columnify strips invalid db identifier characters. |
| 24 | func Columnify(str string) string { |
no outgoing calls
searching dependent graphs…