# 安装

## 下载地址

{% embed url="<https://golang.org/dl/>" %}

## 安装配置

以安装go1.13.linux-amd64为例：

```bash
wget https://dl.google.com/go/go1.13.linux-amd64.tar.gz
tar -C /usr/local -xzf go1.13.linux-amd64.tar.gz
```

编辑`/etc/profile`添加环境变量

{% code title="/etc/profile" %}

```bash
export PATH=$PATH:/usr/local/go/bin:/root/go/bin
export GOPATH=/root/go
```

{% endcode %}

让环境变量配置生效

```bash
source /etc/profile
```

完成安装配置后使用以下命令进行验证

```
# 查看golang版本
go version

# 查看golang环境变量配置
go env
```

## 准备开发环境

{% embed url="<https://viva.gitbook.io/project/sui-bi/ide>" %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://golang-2.gitbook.io/handbook/golang.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
