李守中

Golang 安装笔记

Table of Contents

1 Windows 上从二进制压缩包安装

下载并解压压缩包,假设路径为 d:\DevTools\go1.18.1.windows-amd64\。

打开 控制面板 -> 系统和安全 -> 系统 -> 高级系统设置 -> 高级 -> 环境变量:

  1. 添加系统变量 GOROOT 值为 d:\DevTools\go1.18.1.windows-amd64\
  2. %GOROOT%/bin 路径添加到 Path 变量值中

如果需要一个全局的 GOPATH 的话:

  1. 添加系统变量 GOPATH 值为 d:\DevTools\go-packages
  2. %GOPATH%/bin 路径添加到 Path 变量值中


Last Update: 2022-10-17 Mon 23:44

Contact: [email protected]     Generated by: Emacs 27.1 (Org mode 9.3)

若正文中无特殊说明,本站内容遵循: 知识共享署名-非商业性使用-相同方式共享 4.0 国际许可协议