Make toCamelInitCase private

This commit is contained in:
Ian Coleman 2017-06-15 12:36:32 +10:00
parent c888c7b782
commit e1e131f0f2

View File

@ -5,7 +5,7 @@ import (
) )
// Converts a string to CamelCase // Converts a string to CamelCase
func ToCamelInitCase(s string, initCase bool) string { func toCamelInitCase(s string, initCase bool) string {
s = strings.Trim(s, " ") s = strings.Trim(s, " ")
n := "" n := ""
capNext := initCase capNext := initCase
@ -30,9 +30,9 @@ func ToCamelInitCase(s string, initCase bool) string {
} }
func ToCamel(s string) string { func ToCamel(s string) string {
return ToCamelInitCase(s, true); return toCamelInitCase(s, true);
} }
func ToLowerCamel(s string) string { func ToLowerCamel(s string) string {
return ToCamelInitCase(s, false); return toCamelInitCase(s, false);
} }