Example #1
0
func lowerCamelCase(st string) string {
	if len(st) <= 1 {
		return strings.ToLower(st)
	}
	st = thrift.CamelCase(st)
	return strings.ToLower(st[:1]) + st[1:]
}
Example #2
0
func camelCase(st string) string {
	if strings.ToUpper(st) == st {
		st = strings.ToLower(st)
	}
	return thrift.CamelCase(st)
}