You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to edit generated methods and I want them not to be overwritten by next generation. If new methods are added to interface I want them to be generated and added to the existing file.
So what I want is some kind of strategy. Invocation may look like:
gowrap gen -i Some -t mine.tmpl -o generated.go -strategy merge|overwrite
I want to edit generated methods and I want them not to be overwritten by next generation. If new methods are added to interface I want them to be generated and added to the existing file.
So what I want is some kind of strategy. Invocation may look like:
How woild this work:
Template:
Initial interface:
Initial generated file:
Updated file:
Updated interface:
Generated with stratedy 'merge' file:
If you believe there is a place for such a feature in this library I might be able to implement it myself.
The text was updated successfully, but these errors were encountered: