当前位置:网站首页>Learning go language 0x01: start from the official website
Learning go language 0x01: start from the official website
2022-04-23 11:07:00 【Love blog uncle】
* Go The official website of language
This website is blocked by the wall , because golang.org It's just an alias (CNAME), Its real domain name is golang-consa.l.google.com.ping This domain name , You can know :
ping golang.org
is Ping golang-consa.l.google.com [216.239.37.1]
google.com You can't visit in China yet , therefore golang.org You can't visit .
* by Go Configure agent
It can be for go get
Command settings agent :
stay Windows in
set http_proxy=http://127.0.0.1:46205
set https_proxy=http://127.0.0.1:46205
stay linux in , stay .bashrc or .profile Set in http_proxy, https_proxy Value .
go get Behind the implementation is git clone, So if the above proxy settings don't work , It can be for git Setting agent , as follows :
git config --global --add http.proxy http://127.0.0.1:46205
It should be noted that , This agent is global , On your machine git All projects will take this agent .
therefore , If you don't need an agent , It should be deleted in time , It can be executed git config --global -e
, then Just delete the agent .
stay Linux in , This can also be done go get
, That is to say go get And before http_proxy=127.0.0.1:6701
http_proxy=127.0.0.1:6701 go get golang.org/dl/go1.10.7
* You can visit in China Go Official website
go Official website : https://golang.google.cn
go Language journey : https://tour.go-zh.org/welcome/1
* see Go Environment variables of
perform $ go env
You can view your current environment Go Related environment variables .
* stay Cygwin Use in Go
stay Cygwin in , compile 、 The execution is normal .
however ,go get There will be problems with the command , There will be a path error , Probably go get It doesn't take into account in itself cygwin In the implementation of .
版权声明
本文为[Love blog uncle]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204231102106109.html
边栏推荐
- Difference between pregnancy box and delivery box
- How to quickly query 10 million pieces of data in MySQL
- Latex usage
- MySQL sorting feature details
- Excel·VBA数组冒泡排序函数
- How to Ping Baidu development board
- How to quickly download vscode
- Detailed explanation of typora Grammar (I)
- MySQL Router重装后重新连接集群进行引导出现的——此主机中之前已配置过的问题
- 学习网站资料
猜你喜欢
26. 删除有序数组中的重复项
vm设置静态虚拟机
初探 Lambda Powertools TypeScript
Mysql8.0安装指南
Visual common drawing (V) scatter diagram
The songbird document editor will be open source: starting with but not limited to markdown
Visualization Road (10) detailed explanation of segmentation canvas function
Visual common drawing (III) area map
Typora operation skill description (I) md
Excel · VBA custom function to obtain multiple cell values
随机推荐
语雀文档编辑器将开源:始于但不止于Markdown
CUMCM 2021-b: preparation of C4 olefins by ethanol coupling (2)
Using El popconfirm and El backtop does not take effect
采用百度飞桨EasyDL完成指定目标识别
Gets the current time in character format
SVN的使用:
Analysis on the characteristics of the official game economic model launched by platoffarm
colab
MySQL对数据表已有表进行分区表的实现
How to quickly download vscode
Cumcm 2021 - B: préparation d'oléfines C4 par couplage éthanol (2)
Manjaro installation and configuration (vscode, wechat, beautification, input method)
Full stack cross compilation x86 completion process experience sharing
SWAT - Introduction to Samba web management tool
STM32接电机驱动,杜邦线供电,然后反烧问题
GO接口使用
MBA-day6 逻辑学-假言推理练习题
学习 Go 语言 0x02:对切片 Slice 的理解
Jupyter lab top ten high productivity plug-ins
MIT:用无监督为世界上每个像素都打上标签!人类:再也不用为1小时视频花800个小时了