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

Codegen refactor #273

Merged
merged 12 commits into from
Mar 19, 2024
Merged

Codegen refactor #273

merged 12 commits into from
Mar 19, 2024

Conversation

gucio321
Copy link
Collaborator

We all love object programming right? 😄
I've organised main.go int a few, handy objects.
One of these objects called Context is passed through the whole generator (instead of a bunch of maps).
Also, now all generators uses maps by default so that checking if certain name is present in map is super easy.

gucio321 added 12 commits March 19, 2024 09:53
- we all like small functions (not one large beast)
- Now I moved flags stuff to flags.go
- I've also added a special function to validate json paths
- we all love small, nice to read functions
- I've extractred json loading stuff into separated function
- over that, I've added a small helper struct to store that data
now I'll try to enhance data flow
@gucio321 gucio321 merged commit aeb1f42 into AllenDang:main Mar 19, 2024
5 checks passed
@gucio321 gucio321 deleted the codegen-refactors branch March 19, 2024 17:47
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

Successfully merging this pull request may close these issues.

1 participant