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

Expose Public Function for Code Generation in Package #327

Open
agmanchon opened this issue Nov 21, 2024 · 0 comments
Open

Expose Public Function for Code Generation in Package #327

agmanchon opened this issue Nov 21, 2024 · 0 comments

Comments

@agmanchon
Copy link

Could you create a public function in the package to generate code directly? This would allow users to utilize the library programmatically without needing to invoke the binary.
For example, it would be helpful to have a function like GenerateCode(config Config, schemaFiles []string) error that could be called from Go code. This would improve flexibility and make it easier to integrate the library into other tools or workflows.
Currently, the only way to generate code is by executing the binary, which introduces overhead when integrating with other Go projects.
Let me know your thoughts, and thank you for considering this suggestion!

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

No branches or pull requests

1 participant