go get科,学,上。网gopm
1. 从github拉取gopm
> go get github.com/gpmgo/gopm
(注意:go get 工具要使用git,你的提前安装git工具,如果没有安装请提前安装好)
GOPATH./bin

然后就可以使用gopm工具拉取golang官网的三方包了。
拉取Goimports的文件
> gopm get -g -v -u golang.org/x/tools/cmd/goimports

然后就可以使用go的install或者build工具编译成可执行程序。
这里我就教大家怎么添加进Goland工具中。
File -> Settings -> Tools -> File Watchers
(如果你goland没有 File Watchers ,可以在File -> Settings -> Plugins 中搜索 File Watchers 然后安装使用。)

2

里面有go的三个工具可以都添加上
三个工具都如下图中一样直接点OK就行了。

继续点OK

然后我们回到了主页,在上面工具栏中的Tools里面
