[Feature] allow cross pkg generate
Issue
https://github.com/sunboyy/repogen/issues/41
Feature
-
package.Packageadd fieldPathto locate itself. - add flag
model-diranddest-pkg -
code.Structadd fieldPackageAliasto represent imported type and update parser accordingly - parse model package conditionally
this should merge after https://github.com/sunboyy/repogen/pull/44. It should automatically solve the current issue of missing package alias of generated UserRepository.
I am still not totally understand your code, but I will try to learn as I review it. The change requests may come up as I gradually learn your code.
Hi! I have just refactored the code to utilize the go/types and go/packages modules which should make this task far easier to implement than before. Are you still willing to work on this?
Hi! I have just refactored the code to utilize the go/types and go/packages modules which should make this task far easier to implement than before. Are you still willing to work on this?
sure, glad to see the new refactoring! Let me follow up the changes.
opened another PR https://github.com/sunboyy/repogen/pull/49