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

Add more case transformations #114

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

CL-Jeremy
Copy link

Add strict versions of PascalCase and camelCase, as well as CONST_CASE from #95, with respective basic test cases. Based on my experience, the former two are used extensively at least in C# and JavaScript/TypeScript. In fact, I don't personally know another language that strongly encourages retaining all caps segments in a camel/pascal-case identifier (DBName rather than DbName) other than Go.

Not adding UPPERCASE and lowercase transformations, as the supposed use case referred to by the OP would most probably be achieved by quoting entity names in SQL queries, or using either snake_case (PostgreSQL) or CONST_CASE (SQL standard), so the word boundaries are retained. If anybody does indeed need pure case conversions (could also be that they were using _ in Go identifiers, uhh...), feel free to reply here.

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 this pull request may close these issues.

1 participant