Files
freeCodeCamp/guide/chinese/go/installing-go/mac-package-installer/index.md
2018-10-16 21:32:40 +05:30

19 lines
694 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: Installing Go in Mac OS X using Package Installer
localeTitle: 使用Package Installer在Mac OS X中安装Go
---
### 使用Package Installer在Mac OS X中安装Go
从[golang的下载页面](https://golang.org/dl/) 获取Mac软件包安装程序以.pkg结尾并运行它。
![screenshot of golang's download page as of this writting, highliting link](https://raw.githubusercontent.com/AlexandroPerez/resources/master/img/mac_package_installer.jpg "Mac包安装程序链接")
#### 检查go的安装和版本
要检查是否已成功安装,请打开终端并使用:
```sh
$ go version
```
这应该在控制台上打印go的版本同时确保安装顺利进行。