gen icon indicating copy to clipboard operation
gen copied to clipboard

Support work with go modules

Open Kipriz opened this issue 6 years ago • 5 comments
trafficstars

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.

Kipriz avatar Apr 12 '19 14:04 Kipriz

Please this is very needed

seaskyways avatar Jun 08 '19 15:06 seaskyways

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

vzool avatar Sep 22 '20 07:09 vzool

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")

vzool avatar Sep 22 '20 08:09 vzool

gen appears to be unusable with any Gomodules project. As everyone can be expected to move to Gomodules, this really needs to be fixed.

alexec avatar Oct 26 '20 18:10 alexec

[shameless plug]-> You could try rickb777/runtemplate instead. (also rickb777/collection for predetermined collection types)

rickb777 avatar Oct 28 '20 09:10 rickb777