freeCodeCamp/guide/chinese/go/installing-go/mac-package-installer/index.md

19 lines
694 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

---
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的版本同时确保安装顺利进行。