Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2020/11/03/install-golang #90

Open
utterances-bot opened this issue Nov 13, 2020 · 3 comments
Open

2020/11/03/install-golang #90

utterances-bot opened this issue Nov 13, 2020 · 3 comments

Comments

@utterances-bot
Copy link

Go语言环境搭建详解(2020版) | 飞雪无情的博客

Go语言环境搭建详解(2020版)

https://www.flysnow.org/2020/11/03/install-golang.html

Copy link

nulIptr commented Nov 13, 2020

安装版,顾名思义,双击打开会出现安装向导,让你选择安装的路径,帮你设置好环境比安康等信息,比较省事方便一些。

错别字:环境比安康->环境变量

Copy link

使用idea创建go module 项目就不能指定GOPATH到该项目了、GOPATH使用全局默认$GOROOT/pkg 目录,下载的远程包却存到了$GOROOT//pkg/pkg/mod/cache/download之下,在idea中编写代码导入模块、需要进行同步然后在$GOROOT/pkg/pkg 下生成sumdb,然后idea go module模块的mod 文件也关联到了一个go.sum的文件、这时才能正常导入模块使用,刚跑完代码、不知道是否因为版本问题、go版本1.15.2、idea版本2020.01

@flysnoworg
Copy link
Contributor

使用idea创建go module 项目就不能指定GOPATH到该项目了、GOPATH使用全局默认$GOROOT/pkg 目录,下载的远程包却存到了$GOROOT//pkg/pkg/mod/cache/download之下,在idea中编写代码导入模块、需要进行同步然后在$GOROOT/pkg/pkg 下生成sumdb,然后idea go module模块的mod 文件也关联到了一个go.sum的文件、这时才能正常导入模块使用,刚跑完代码、不知道是否因为版本问题、go版本1.15.2、idea版本2020.01

通过环境变量指定GOPATH

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants