Browse Source

Make toCamelInitCase private

tags/v0.1.0
Ian Coleman 7 years ago
parent
commit
e1e131f0f2
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      camel.go

+ 3
- 3
camel.go View File

@@ -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);
}

Loading…
Cancel
Save