From e1e131f0f235122cd147dfb40fb9aaf7d97a45bc Mon Sep 17 00:00:00 2001 From: Ian Coleman Date: Thu, 15 Jun 2017 12:36:32 +1000 Subject: [PATCH] Make toCamelInitCase private --- camel.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/camel.go b/camel.go index 240a43e..0def31b 100644 --- a/camel.go +++ b/camel.go @@ -5,7 +5,7 @@ import ( ) // Converts a string to CamelCase -func ToCamelInitCase(s string, initCase bool) string { +func toCamelInitCase(s string, initCase bool) string { s = strings.Trim(s, " ") n := "" capNext := initCase @@ -30,9 +30,9 @@ func ToCamelInitCase(s string, initCase bool) string { } func ToCamel(s string) string { - return ToCamelInitCase(s, true); + return toCamelInitCase(s, true); } func ToLowerCamel(s string) string { - return ToCamelInitCase(s, false); + return toCamelInitCase(s, false); }