Gogland (perhaps also others) configuration example
Opened this issue · 1 comments
vromero commented
User could find useful a quick and small guide to configure the most relevant ides.
I understand, native support is expected at some point at the IDE side, but I'm talking about the very basics to be able to edit with code validation and autocomplete.
gandalfSievers commented
Just use the standard Go(g)land build tools. In Preferences > GO > GOPATH
, remove any entry in Global GOPATH
. Add two entries in Project GOPATH
, one for for your projects main folder and one for the vendor folder.
e.g.:
/User/me/projects/myproject
/User/me/projects/myproject/vendor
Then just add a new Go Build
configuration under Run/Debug Configurations
with the default settings and select your projects main file in the file section.