Skip to content

Commit b61d13e

Browse files
committed
添加卸载go文档
1 parent 115bb0d commit b61d13e

File tree

1 file changed

+15
-5
lines changed

1 file changed

+15
-5
lines changed

README.md

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,17 @@ Go语言快速入门
1818
<details>
1919
<summary>点击展开目录菜单</summary>
2020

21-
<!-- TOC -->
22-
2321
- [安装Go](#安装go)
24-
- [运行Go](#运行go)
22+
- [运行Go](#运行go)
2523
- [格式化输入输出](#格式化输入输出)
2624
- [编程基础](#编程基础)
2725
- [基本类型](#基本类型)
2826
- [常量变量](#常量变量)
2927
- [语言运算符](#语言运算符)
3028
- [流程控制语句](#流程控制语句)
29+
- [结构体](#结构体)
3130
- [资源导航](#资源导航)
3231

33-
<!-- /TOC -->
3432

3533
</details>
3634

@@ -67,13 +65,13 @@ mkdir -p $HOME/gopath
6765

6866
```bash
6967
brew update && brew upgrade # 更新 Homebrew 的信息
68+
brew update go # 单独更新 golang
7069
brew install git # 安装 git
7170
brew install go # 安装 go
7271
```
7372

7473
</details>
7574

76-
7775
<details>
7876
<summary>Mac中通过源码安装</summary>
7977

@@ -285,6 +283,18 @@ govendor test +local
285283
</details>
286284

287285

286+
## 卸载go
287+
288+
<details>
289+
<summary>卸载Go</summary>
290+
291+
- 删除 Go 的安装文件目录,这通常是在 `Linux``macOS``FreeBSD` 下的 `/usr/local/` go 或者在 Windows 下的 `c:\Go` 下。
292+
- 同时删除环境变量, `Linux``FreeBSD` 编辑 `/etc/profile` 或者 `$HOME/.profile`
293+
- 如果你是 `macOS` 你需要删除 `/etc/paths.d/go` 文件。
294+
295+
</details>
296+
297+
288298
## 运行Go
289299

290300
<details>

0 commit comments

Comments
 (0)