constabulary / gb

gb, the project based build tool for Go
https://getgb.io/
MIT License
2.15k stars 148 forks source link

Gogland (perhaps also others) configuration example #724

Open vromero opened 7 years ago

vromero commented 7 years ago

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 6 years ago

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.