# IntelliJ IDEA 中配置 Go 的 SDK

**URL:** <https://www.isharkfly.com/t/intellij-idea-go-sdk/13924>\
**Category:** DevOps\
**Tags:** ide, go\
**Created:** [April 20, 2022, 1:43pm UTC](https://www.isharkfly.com/t/intellij-idea-go-sdk/13924 "2022-04-20T13:43:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![honeymoose](https://www.isharkfly.com/user_avatar/www.isharkfly.com/honeymoose/32/20796_2.png) [@honeymoose](https://www.isharkfly.com/u/honeymoose)\
**Post date:** [April 20, 2022, 1:43pm UTC](https://www.isharkfly.com/t/intellij-idea-go-sdk/13924/1 "2022-04-20T13:43:31Z")

</div>

IntelliJ IDEA 中如何配置 Go 的 SDK。

首先你需要在你的计算机中配置了 Go，并且将 Go 添加到系统变量中。

## GOROOT

然后在 IntelliJ IDEA 的语言设置中找到 Go，然后选择 GOROOT

在 GOROOT 的右侧单击 + 号，然后选择本地

![go-install-sdk-01](https://www.isharkfly.com/images/transparent.png)

## 找到路径

在弹出的对话框中，找到 Go 的本地文件夹，然后选择后确认

![go-install-sdk-02](https://www.isharkfly.com/images/transparent.png)

## 检查版本

当你完成上一步后，你应该能够看到 IntelliJ IDEA 为你识别出来的版本。

请确定版本一致。

![go-install-sdk-03](https://www.isharkfly.com/images/transparent.png)

至此你的 IntelliJ IDEA 就配置完成了 Go 的 SDK。
