golang/go
View on GitHubx/mobile/bind: C functions in headers should not be PascalCase
Open
#58,480 opened on Feb 12, 2023
FeatureRequestNeedsInvestigationhelp wantedmobile
Repository metrics
- Stars
- (133,883 stars)
- PR merge metrics
- (No merged PRs in 30d)
Description
What version of Go are you using (go version)?
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (go env)?
What did you do?
When using go bind ios in our project we are getting everything coming through as PascalCase. This is irritating because it's standard for methods and functions to be camelCase, classes to be PascalCase, and so on. But instead go bind ios seems to treat everything as PascalCase whether it's a class, function, method, variable, interface or anything else.
At a minimum go bind ios and go bind android should adopt best practices for casing.
What did you expect to see?
Classes: PascalCase, methods: camelCase, constants or enums: UPPERCASE, variables: camelCase.
What did you see instead?
Everything is PascalCase