# golang环境变量配置 {#golang环境变量配置}
本文讲述golang的环境变量配置。
# 环境变量配置 {#环境变量配置}
示例配置如下
export GO_HOME=$HOME/workspace/programs/go1.17.5/go
export GOPATH=$HOME/workspace/gopath
export PATH=$GO_HOME/bin:$GOPATH/bin:$PATH
export GO111MODULE=on
export GOPROXY=https://goproxy.cn
export GOPRIVATE=git.mygitlab.com