#windows 上安装go语言包
1、下载和安装Go语言开发包
下载go1.16
在Go语言官网()下载 Windows 系统下的Go语言开发包,使用下载的包直接安装
<img alt="" src="https://i-blog.csdnimg.cn/blog_migrate/3dfe0f75332ac917c33525166830a92f.png">
2、设置Go配置
(1)设置<strong>go</strong><strong>环境变量</strong>
安装好后,会自动设置好go环境变量
<img alt="" src="https://i-blog.csdnimg.cn/blog_migrate/34b0f6a0de7388f42f70a79d4b7a480a.png">
<img alt="" src="https://i-blog.csdnimg.cn/blog_migrate/d4ce80ce445a37a0429e093e166ef158.png">
<strong>(2)开启</strong><strong>Go modules和设置go 依赖包下载地址</strong>
go env -w GO111MODULE=on
go env -w GOPROXY=https://goproxy.io,direct