19 lines
694 B
Markdown
19 lines
694 B
Markdown
|
---
|
|||
|
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的版本,同时确保安装顺利进行。
|