iancoleman / strcase

A golang package for converting to snake_case or CamelCase
MIT License
1.01k stars 106 forks source link

Why is it called ToCamel instead of ToPascal? #46

Open Vedadiyan opened 1 year ago

Vedadiyan commented 1 year ago

This is a bit confusing. I was actually reading camel_test.go and in the beginning I was thinking maybe there's a mistake (a typo) in the source code but later on I came across this function ToLowerCamel and then I made sure you named it on purpose that way.

I have created this issue because:

  1. If I use this class library in a project, other developers will surely get confused when they encounter the ToCamel function, and this can lead to certain problems specially in code-reviews.
  2. The majority of people recognize that case as PascalCase

ToCamel makes the code less readable as it does not deliver its true meaning unless someone dives deeper into library and finds out about the ToLowerCamel method.

This is indeed a great library, but can you fix this problem?