Golang&Goland配置

栏目: IT技术 · 发布时间: 6年前

内容简介:File Watchers插件下载Tools -> File Watchers中,添加如下设置:进行如上设置后,就可以在导入不在缓存中的包时,点击 Sync packages of... 下载该包了:

Golang配置

环境配置

  1. 设置环境变量 GOPROXY ,以使用 go get 的:
export GOPROXY=https://goproxy.io

Goland配置

gofmt与goimports(GoLand 2019.1.3)

File Watchers插件下载

Tools -> File Watchers中,添加如下设置:

Golang&Goland配置

image.png

Go Modules 配置(GoLand 2019.1.3)

  1. Preferences -> Go -> Go Modules (vgo),勾选 Enable Go Modules (vgo) integration 以启用 Go Modules,并在 Proxy 输入框中输入 https://goproxy.io 。如图所示:

    Golang&Goland配置

    image.png

  2. Preferences -> Go -> GOPATH,勾选上 Index entire GOPATH 以索引整个 GOPATH,不然无法导入包。如图所示:

    Golang&Goland配置

    image.png

进行如上设置后,就可以在导入不在缓存中的包时,点击 Sync packages of... 下载该包了:


以上就是本文的全部内容,希望本文的内容对大家的学习或者工作能带来一定的帮助,也希望大家多多支持 码农网

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

More Eric Meyer on CSS (Voices That Matter)

More Eric Meyer on CSS (Voices That Matter)

Eric A. Meyer / New Riders Press / 2004-04-08 / USD 45.00

Ready to commit to using more CSS on your sites? If you are a hands-on learner who has been toying with CSS and want to experiment with real-world projects that will enable you to see how CSS......一起来看看 《More Eric Meyer on CSS (Voices That Matter)》 这本书的介绍吧!

URL 编码/解码
URL 编码/解码

URL 编码/解码

XML、JSON 在线转换
XML、JSON 在线转换

在线XML、JSON转换工具

XML 在线格式化
XML 在线格式化

在线 XML 格式化压缩工具