Last active
March 20, 2017 08:30
-
-
Save l-vitaly/dc82c074a8b0d206ec8cdd7df8621635 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func UCFirst(s string) string { | |
return strings.ToUpper(s[:1]) + s[1:] | |
} | |
func LCFirst(s string) string { | |
return strings.ToLower(s[:1]) + s[1:] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment