

Golang&Goland配置
source link: https://studygolang.com/articles/26507
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Golang配置
环境配置
- 设置环境变量 GOPROXY ,以使用 go get 的:
export GOPROXY=https://goproxy.io
Goland配置
gofmt与goimports(GoLand 2019.1.3)
File Watchers插件下载
Tools -> File Watchers中,添加如下设置:

image.png
Go Modules 配置(GoLand 2019.1.3)
-
Preferences -> Go -> Go Modules (vgo),勾选 Enable Go Modules (vgo) integration 以启用 Go Modules,并在 Proxy 输入框中输入 https://goproxy.io 。如图所示:
image.png
-
Preferences -> Go -> GOPATH,勾选上 Index entire GOPATH 以索引整个 GOPATH,不然无法导入包。如图所示:
image.png
进行如上设置后,就可以在导入不在缓存中的包时,点击 Sync packages of... 下载该包了:
Recommend
-
127
Early Access Program Features GoLand EAP 19: Docs in Param Info, Cove...
-
139
Early Access Program Features GoLand EAP 20: Go Build Run Configurati...
-
124
News Releases The Way to Go: JetBrains GoLand IDE Hits the Market
-
88
GoLand’s Take on Go DevelopmentHello, My name is Andrey and I work at JetBrains. Even though in the last five years I have been heavily involved in product marketing and product management, I’m an engineer b...
-
82
Go the Distance: GoLand 2018.1 is Here!
-
119
-
52
-
53
jetbrains 家的开发工具我一直很喜欢用,goland也没让我失望, go1.11 发布没多久,我试用过后感觉很方便,和goland也很契合,下面来说说对于新版本的go语言,在goland里面需要怎么配置 需求: 1.goland(我用的2018.2版...
-
11
Golang的SDK下载安装与Goland安装使用,创建第一个go程序 Roy01 · 37分钟之前 · 7 次点击 · 预计阅读时间不到 1 分钟 · 不到1分钟之前 开始浏览 ...
-
11
本人在使用goland软件开发go时,对于goland软件配置网上资料少,为了方便自己遗忘、也为了希望和我一样的小白能够更好的使用,所以就写下这篇博客,废话不多说开考。 一、查看自己电脑系统版本 (1)这里本人放一种查看...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK