Make toCamelInitCase private
This commit is contained in:
parent
c888c7b782
commit
e1e131f0f2
6
camel.go
6
camel.go
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user