当前位置:网站首页>错误:note: module requires Go 1.17
错误:note: module requires Go 1.17
2022-06-22 05:30:00 【weixin_46272577】
错误信息
PS D:\syz\study\computer_science\Go\workspaces\src\study-code\web_app> go run .\main.go
# golang.org/x/net/http2
..\..\..\pkg\mod\golang.org\x\[email protected]\http2\transport.go:416:45: und
efined: os.ErrDeadlineExceeded
note: module requires Go 1.17
通过提示,我需要下载 GO 1.17
下载 Go 1.17
- 下载地址:Downloads - The Go Programming Language (google.cn)
- 下载版本
Go1.17.3.windows-amd64.zip
需要设置 GOROOT 环境变量,取自己安装的文件夹即可。比如我把下载的 Go 1.17 放到了 Go 1.17 文件夹下。

之后,打开 cmd,输入 go version,可以看到 Go 语言的版本
重新配置 GoLand
我是在 GoLand 下写项目的,而我的 GoLand 默认的 GOROOT 还是之前的老版本,所以我需要重新设置 GOROOT 路径。

此时运行程序就成功通过编译了

边栏推荐
- Get jedis from jedissentinelpool
- Learning method 4 for promotion of big factories: play learning method
- Want to put Facebook ads but don't know where to start? This article takes you to know more about
- [graduation season · advanced technology Er] a graduate student's chatter
- Small and medium-sized enterprises should pay attention to these points when signing ERP contracts
- QEMU ARM interrupt system architecture
- redis连接错误:ERR Client sent AUTH, but no password is set解决方案2个
- Rétroaction sur la remise des diplômes! Tous les contributeurs de la communauté Apache Doris sont ici pour recevoir des cadeaux!
- Key points of Facebook account "unsealing, anti sealing and maintaining ID" have been collected!
- Current market situation analysis and investment analysis prospect report of global and Chinese ceramic capacitor industry 2022-2027
猜你喜欢

Sogou input method cannot output Chinese

Record local project startup error: invalid source distribution: 8

Yarn application submission process

Hide symbol of dynamic library

部署SuperMap iServer war包时的服务迁移

毕业季 | 新的开始,不说再见

Kubernetes -- setting up an environment using minicube
![P1061 [NOIP2006 普及组] Jam 的计数法](/img/53/7ca41b2ed4084f49ebcc2dd47e5919.png)
P1061 [NOIP2006 普及组] Jam 的计数法

总有人问我:独立站该怎么玩?3个案例,你看完就懂了
Talk about MySQL's locking rule "hard hitting MySQL series 15"
随机推荐
Mobile terminal layout adaptation
LeetCode热题 HOT1-50
\[\e]0; \[email protected]\h: \w\a\]\[\033[01;32m\]\[email protected]\h\[\033[
The benefits of implementing the standard of intellectual property in Miyun District, Beijing, with a subsidy of 50000-100000 yuan
Parameter serialization
独立站 “ 去中心化 ” 模式崛起,席卷跨境企业转型浪潮
Rambbmitmq Push Party
SQL classification, user properties
Delete the packaging use of pop-up components
Gerrit Code Review Setup
Cookie setting and reading in C #
Hide symbol of dynamic library
总有人问我:独立站该怎么玩?3个案例,你看完就懂了
nacos server 源码运行实现
Talk about MySQL's locking rule "hard hitting MySQL series 15"
P1061 [NOIP2006 普及组] Jam 的计数法
Kubernetes - bare metal cluster environment
网络、IO流、反射、多线程、异常
【云原生】2.2 kubeadm创建集群
中小企业签署ERP合同时,需要留意这几点