Skip to content

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