当前位置:网站首页>GO GOPROXY proxy Settings
GO GOPROXY proxy Settings
2022-07-31 00:24:00 【web15286201346】
A background:
Show timeout when you execute go get command proxy.golang.org --> timeout
leyangjundeMacBook-Pro:photoleyangjun$ go get -u github.com/spf13/cobra
go get -u github.com/spf13/cobra
go get github.com/spf13/cobra: module github.com/spf13/cobra: Get https://proxy.golang.org/github.com/spf13/cobra/@v/list: dial tcp 142.251.10.141:443: i/o timeout
Two: Reasons
https://proxy.golang.org/github.com/ cannot be accessed in China
Third: Change to a domestic accessible address and set up a GOPROXY proxy
go env -w GOPROXY=https://goproxy.cn,direct
go env -w GOSUMDB=off (turn off package validation)
go env -w GOSUMDB=“sum.golang.google.cn” (sum verification service provided in China can also be set)
Note: the -w flag requires one or more parameters of the form NAME=VALUE and overrides the default setting
Let me introduce myself first. The editor graduated from Jiaotong University in 2013. I worked in a small company and went to big factories such as Huawei and OPPO. I joined Ali in 2018, until now.I know that most junior and intermediate java engineers want to upgrade their skills, they often need to explore their own growth or sign up to study, but for training institutions, the tuition fee is nearly 10,000 yuan, which is really stressful.Self-learning that is not systematic is very inefficient and lengthy, and it is easy to hit the ceiling and the technology stops.Therefore, I collected a "full set of learning materials for java development" for everyone. The original intention is also very simple. I hope to help friends who want to learn by themselves but don't know where to start, and at the same time reduce everyone's burden.Add the business card below to get a full set of learning materials
边栏推荐
猜你喜欢

firewalld

After writing business code for many years, I found these 11 doorways, which only experts know

joiplay模拟器报错如何解决

(五)fastai应用

How to solve types joiplay simulator does not support this game

C语言力扣第48题之旋转图像。辅助数组

web漏洞之需要准备的工作

joiplay模拟器不支持此游戏类型怎么解决

Error ER_NOT_SUPPORTED_AUTH_MODE Client does not support authentication protocol requested by serv

Steven Giesel recently published a 5-part series documenting his first experience building an application with the Uno Platform.
随机推荐
Go 学习笔记(84)— Go 项目目录结构
what is jira
Oracle一个诡异的临时表空间不足的问题
MySQL筑基篇之增删改查
xss绕过:prompt(1)
(五)fastai应用
GO GOPROXY代理设置
joiplay模拟器如何调中文
一款好用的接口测试工具——Postman
C language force buckles the rotating image of the 48th question.auxiliary array
transition过渡&&animation动画
【愚公系列】2022年07月 Go教学课程 019-循环结构之for
transition transition && animation animation
MySQL的grant语句
Gabor filter study notes
The difference between substring and substr in MySQL
消息队列存储消息数据的MySQL表设计
encrypted transmission process
The difference between truncate and delete in MySQL database
MySQL数据库面试题总结(2022最新版)