Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CUSTOMER_ID with ToCamel or ToLowerCamel not working #12

Closed
nmijailovic opened this issue Nov 30, 2018 · 1 comment · Fixed by #41
Closed

CUSTOMER_ID with ToCamel or ToLowerCamel not working #12

nmijailovic opened this issue Nov 30, 2018 · 1 comment · Fixed by #41

Comments

@nmijailovic
Copy link

CUSTOMER_ID with ToCamel or ToLowerCamel not working
ToCamel = CUSTOMERID instead of CustomerId
ToLowerCamel = cUSTOMERID instead of customerId

@nfam
Copy link

nfam commented Dec 1, 2018

I recommend you use strcase.ToCamel(strings.ToLower("CUSTOMER_ID")).
If you expect strcase.ToCamel("CUSTOMER_ID") == "CustomerId", then strcase.ToCamel("CustomerId") will be Customerid which is not the result we want.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants