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

Capitalize complete acronym if it is first segment of pascalized ident #39

Closed
breml opened this issue Apr 6, 2020 · 1 comment · Fixed by #51
Closed

Capitalize complete acronym if it is first segment of pascalized ident #39

breml opened this issue Apr 6, 2020 · 1 comment · Fixed by #51

Comments

@breml
Copy link
Contributor

breml commented Apr 6, 2020

If the first segment of an ident is an acronym, only the first letter gets capitalized in method Pascalize.

e.g. ip_address is pascalized to IpAddress, I expected to get IPAddress.

For public types in Go, go lint complains, if e.g. ip is not capitalized to IP.

breml added a commit to breml/flect that referenced this issue Apr 6, 2020
breml added a commit to breml/flect that referenced this issue Apr 6, 2020
@sio4 sio4 linked a pull request Mar 12, 2022 that will close this issue
sio4 pushed a commit that referenced this issue Mar 12, 2022
@sio4 sio4 closed this as completed in e28b95b Mar 12, 2022
@sio4
Copy link
Member

sio4 commented Mar 12, 2022

Thanks for bringing this issue and fixing it!

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