how to set golang env on centos7

export GOPROXY=https://mirrors.aliyun.com/goproxy/
export GOPATH=/go_extras/
export GOROOT=/usr/local/go/