ToCamel
Converts a string to kebab case.
- Use
rangeandstrings.Fields()to iterate over the words in the string. - Use
strings.ToUpper()andstrings.ToLower()to capitalize the first letter of each word and lowercase the rest.
Converts a string to kebab case.
range and strings.Fields() to iterate over the words in the string.strings.ToUpper() and strings.ToLower() to capitalize the first letter of each word and lowercase the rest.