Open Kipriz opened 5 years ago
Please this is very needed
Hi @Kipriz, I just created a bash script that build and copy gen command inside your project. So, you can just type gen on the root of your project folder. I hope it help you out. Thanks
Haha, after creating the bash script, I test the tool itself and it doesn't support modules at all. :(
Error message example:
main.go:7:4: could not import example-app/app (can't find import: "example-app/app")
gen
appears to be unusable with any Gomodules project. As everyone can be expected to move to Gomodules, this really needs to be fixed.
[shameless plug]-> You could try rickb777/runtemplate instead. (also rickb777/collection for predetermined collection types)
Right now, it is not possible to run
gen
for projects that are not under GOPATH It would be great to work outside of GOPATH using go modules.