当前位置:网站首页>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
边栏推荐
猜你喜欢

binglog log tracking: data backup and backup tracking

Bypass of xss

限制字符绕过

Niuke.com question brushing training (4)

DATA AI Summit 2022提及到的对 aggregate 的优化

Homework: iptables prevent nmap scan and binlog
Dry goods | 4 tips for MySQL performance optimization

encrypted transmission process

47. 【Pointers and Arrays】

Jmeter参数传递方式(token传递,接口关联等)
随机推荐
[Deep learning] Detailed explanation of Transformer model
The first level must project independently
MySQL grant statements
Machine Learning 1-Regression Model (2)
MySQL数据库进阶篇
Go 学习笔记(84)— Go 项目目录结构
firewalld
Error occurred while trying to proxy request项目突然起不来了
joiplay模拟器不支持此游戏类型怎么解决
从两个易错的笔试题深入理解自增运算符
Android security optimization - APP reinforcement
MPI简谈
h264和h265解码上的区别
论文理解:“Designing and training of a dual CNN for image denoising“
正则表达式密码策略与正则回溯机制绕过
SWM32系列教程6-Systick和PWM
Mysql体系化之JOIN运算实例分析
What are the efficient open source artifacts of VSCode
一款好用的接口测试工具——Postman
【c语言课程设计】C语言校园卡管理系统