Initial commit
This commit is contained in:
11
internal/util/strings.go
Normal file
11
internal/util/strings.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package util
|
||||
|
||||
import "strings"
|
||||
|
||||
func Capitalize(s string) string {
|
||||
if len(s) == 0 {
|
||||
return s
|
||||
}
|
||||
|
||||
return strings.ToUpper(string(s[0])) + s[1:]
|
||||
}
|
||||
Reference in New Issue
Block a user