I came up with this:
package main
import (
"fmt"
"strings"
)
func main() {
fmt.Println(MakeFirstLowerCase("LikeThis"))
}
func MakeFirstLowerCase(s string) string {
s=strings.ToLower(string(s[0]))+s[1:]
return s
}
On Saturday, November 24, 2012 at 4:21:23 PM UTC+5:30, Nikolai wrote:
>
> Hi!
>
> What is the easiest way to make a string "LikeThis" --> "likeThis"?
>
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/golang-nuts/25385b31-f724-40a5-8f68-c6c8905cd5d8%40googlegroups.com.