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

In the js class in wailsjs that is automatically built from the Golang struct, the input parameter name of the constructor is recommended to be fool-proof #3973

Open
xiexul opened this issue Dec 30, 2024 · 0 comments
Labels
Enhancement New feature or request

Comments

@xiexul
Copy link

xiexul commented Dec 30, 2024

Is your feature request related to a problem? Please describe.

image
image
image

In my project, there is a struct in the Golang package, when generating the corresponding WailsJS class model, the constructor input parameter name and namespace are duplicated, causing my substructure to be undefined during initialization and causing an error, now I can only modify the name of my Golang package, and it is recommended to make the input parameters of the constructor fool-proof, such as adding special symbols such as __source

Describe the solution you'd like

I hope that the automatically built JS Class Constructor input parameters can be fool-proof, such as adding special symbols such as __source

Describe alternatives you've considered

No response

Additional context

No response

@xiexul xiexul added the Enhancement New feature or request label Dec 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant