Go 语言安装、配置、运行
下载、安装与配置 下载 Go 安装包 $ wget https://mirrors.aliyun.com/golang/go1.26.0.linux-amd64.tar.gz 将下载的压缩包解压到 /usr/local 目录 # tar -xvf go1.26.0.linux-amd64.tar.gz -C /usr/local 配置环境变量。编辑 ~/.bashrc 或 ~/.profil
Aug 8, 20262 min read
Search for a command to run...
Articles tagged with #golang
下载、安装与配置 下载 Go 安装包 $ wget https://mirrors.aliyun.com/golang/go1.26.0.linux-amd64.tar.gz 将下载的压缩包解压到 /usr/local 目录 # tar -xvf go1.26.0.linux-amd64.tar.gz -C /usr/local 配置环境变量。编辑 ~/.bashrc 或 ~/.profil
Bash (Linux or macOS) # 配置 GOPROXY 环境变量 export GOPROXY=https://goproxy.io,direct # 还可以设置不走 proxy 的私有仓库或组,多个用逗号相隔(可选) export GOPRIVATE=git.mycompany.com,github.com/my/private
