-
Notifications
You must be signed in to change notification settings - Fork 90
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
gen and protobuf #99
Comments
Hmm, sounds like not a great idea. gen is for your types -- I assume that the generated proto files represent an external package's types? |
Why? Protobuf could be used to exchange data between my own services. They are my own types, just defined differently. |
Fair, though I don't have a good suggestion off the top of my head. Show me some sample code? |
Well there are not many things to show. Protobuf it self generates some interfaces for example. type ChannelStoreClient interface { One option would be to have a possibility to add those custom types to "gen" explicitly by command line argument for example. gen -type 'ChannelStoreClient slice:"Where,Count,GroupBy[string]"' or support comments like this |
@Kane-Sendgrid This might help: https://github.com/Softwee/Anakin clipperhouse/gen can then be used to produce types with extra functionality i need. SO you are code generating code, and that produced code is used for another coe gen pass. |
I want to use gen on structures defined by protobuf. But protobuf files are themselves generated and it is not recommended to edit them. Is there any way to get around this?
The text was updated successfully, but these errors were encountered: