NordSecurity / uniffi-bindgen-go

Uniffi bindings generator for Golang
Mozilla Public License 2.0
65 stars 18 forks source link

Normalize case handling for objects and callbacks #24

Closed arg0d closed 7 months ago

arg0d commented 8 months ago

Objects and callbacks were not handling case consistently in generated across code, leading to compilation errors in some cases (see #22).

The main problem arises in capital acronym handling, i.e. HTTPClient. Such acronyms are converted using heck::to_upper_camel_case, which converts upper case acronym HTTP into upper camel case Http, i.e. HttpClient.

Fixes #22.