当前位置:网站首页>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
边栏推荐
- DATA AI Summit 2022提及到的对 aggregate 的优化
- MySQL table design for message queue to store message data
- Installation considerations for pytorch
- DNS resolution process [visit website]
- unity2D横版游戏教程4-物品收集以及物理材质
- 论文理解:“Designing and training of a dual CNN for image denoising“
- WebServer process explanation (registration module)
- Shell编程之条件语句
- Axure Carousel
- Ukraine's foreign ministry: wu was restored to complete the export of food security
猜你喜欢
Strict Mode for Databases
Jmeter参数传递方式(token传递,接口关联等)
DNS解析过程【访问网站】
joiplay模拟器如何调中文
WMware Tools安装失败segmentation fault解决方法
Machine Learning 1-Regression Model (2)
Linux 部署mysql 5.7全程跟踪 完整步骤 django部署
go mode tidy出现报错go warning “all“ matched no packages
【深入浅出玩转FPGA学习15----------时序分析基础】
Meeting OA project pending meeting, all meeting functions
随机推荐
MySQL的触发器
【愚公系列】2022年07月 Go教学课程 017-分支结构之IF
Dry goods | 4 tips for MySQL performance optimization
Regular expression password policy and regular backtracking mechanism bypass
Shell programming conditional statement test command Integer value, string comparison Logical test File test
asser利用蚁剑登录
47. 【Pointers and Arrays】
joiplay模拟器如何调中文
Optimization of aggregate mentioned at DATA AI Summit 2022
【Multithreading】
牛客网刷题训练(四)
Machine Learning 1-Regression Model (2)
Method for deduplication of object collection
Go 学习笔记(84)— Go 项目目录结构
作业:iptables防止nmap扫描以及binlog
【唐宇迪 深度学习-3D点云实战系列】学习笔记
unity2D横版游戏教程4-物品收集以及物理材质
Summary of the stock problem of state machine dynamic programming
How to solve types joiplay simulator does not support this game
Bypass of xss