当前位置:网站首页>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
边栏推荐
- Detailed introduction to paging exploration of MySQL index optimization
- How to use JDBC callablestatement The wasnull () method is called to check whether the value of the last out parameter is SQL null
- Pycharm
- MySQL索引优化之分页探索详细介绍
- 初探 Lambda Powertools TypeScript
- SWAT—Samba WEB管理工具介绍
- VScode
- MySQL分区表实现按月份归类
- CUMCM 2021-B:乙醇偶合制备C4烯烃(2)
- Use of SVN:
猜你喜欢

How to quickly download vscode

Let the LAN group use the remote device

MIT:用无监督为世界上每个像素都打上标签!人类:再也不用为1小时视频花800个小时了

Go interface usage

数据库管理软件SQLPro for SQLite for Mac 2022.30

VIM + ctags + cscope development environment construction guide

Mysql8. 0 installation guide

Canvas详解

CUMCM 2021-B:乙醇偶合制备C4烯烃(2)

Visual Road (XII) detailed explanation of collection class
随机推荐
Excel · VBA array bubble sorting function
Detailed explanation of typora Grammar (I)
mysql中整数数据类型tinyint详解
Precautions for latex formula
Google Earth Engine(GEE)——将原始影像进行升尺度计算(以海南市为例)
MySQL索引优化之分页探索详细介绍
vm设置静态虚拟机
26. 删除有序数组中的重复项
MySQL数据库10秒内插入百万条数据的实现
Strongest date regular expression
redis优化系列(二)Redis主从原理、主从常用配置
Microsoft Access database using PHP PDO ODBC sample
Go interface usage
How to use JDBC callablestatement The wasnull () method is called to check whether the value of the last out parameter is SQL null
SWAT - Introduction to Samba web management tool
Mba-day5 Mathematics - application problems - engineering problems
How to bind a process to a specified CPU
MySQL分区表实现按月份归类
《Neo4j权威指南》简介,求伯君、周鸿袆、胡晓峰、周涛等大咖隆重推荐
Typora operation skill description (I) md