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

ToCamelCase returns PascalCase #56

Closed
LlewellynS96 opened this issue May 30, 2024 · 1 comment
Closed

ToCamelCase returns PascalCase #56

LlewellynS96 opened this issue May 30, 2024 · 1 comment

Comments

@LlewellynS96
Copy link

The first letter in camelCase should be lower case, e.g. httpServer. This is discussed in many places on the internet, including here.

This results in bugs in downstream packages like this one in sprig.

I believe the solution might be to remove one line and fix the tests.

r0 = unicode.ToUpper(r0)

@LlewellynS96 LlewellynS96 changed the title Bug in ToCamelCase ToCamelCase returns PascalCase May 30, 2024
@huandu
Copy link
Owner

huandu commented Jun 6, 2024

Make sense. I'll add a new api ToPascalCase and change ToCamelCase behavior.

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

No branches or pull requests

2 participants