> For the complete documentation index, see [llms.txt](https://termux-wiki.zsxwz.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://termux-wiki.zsxwz.com/golang.md).

# golang

安装：

```
apt install golang
```

换源：

```
# 启用 Go Modules 功能
go env -w GO111MODULE=on


# 阿里云
go env -w GOPROXY=https://mirrors.aliyun.com/goproxy/,direct

# 验证
go env | grep GOPROXY
```
