我试图使用intellij的golang插件,但是它说没有定义GOPATH。
就我而言,我只想使用GOPATH。
随附的屏幕截图:这里的主要问题:使用intellij的Golang插件时,如何以及在哪里设置GOPATH?
Some context: I don't mind setting gopath globally on my mac, but it seems that is a heavy-handed approach for an IDE to use**
the Go plugin currently uses the term Go Libraries for different GOPATH values. If you have a single GOPATH that you'd like to use for all the projects, then you can add it to the "Global Libraries". For example, my $GOPATH is /home/florin/golang and in the plugin I've set the Global Libraries from the Go Libraries setting to reflect that (see this screenshot).
If the plugin can automatically detect the GOPATH, and you have the check box ticked for that, then the plugin will try and use that value as the GOPATH value, see the next screenshot
Also, the plugin has three different types of GOPATH values right now:
有一张票证计划进一步简化此操作,您的输入将包括在内。
希望能帮助到你。
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句