[Golang] GOROOT 及 GOPATH
作者:互联网
但推荐显式地设置一下 fish shell 中设置 # ~/.config/fish/config.fish set -x GOPATH $HOME/go # 或其他位置 set -x PATH $PATH $GOPATH/bin 除了以上两个环境变量,还有很多可配置的 Go tool 环境变量,可通过 $ go env GO111MODULE="" GOARCH="amd64" GOBIN="" GOCACHE="/Users/wayongliu/Library/Caches/go-build" GOENV="/Users/wayongliu/Library/Application Support/go/env" GOEXE="" GOFLAGS="" GOHOSTARCH="amd64" GOHOSTOS="darwin" GOINSECURE="" GOMODCACHE="/Users/wayongliu/go/pkg/mod" GONOPROXY="" GONOSUMDB="" GOOS="darwin" … 相关资源 |
The text was updated successfully, but these errors were encountered: |
标签:bin,GOPATH,GOROOT,Golang,Go,wayongliu,go 来源: https://www.cnblogs.com/Wayou/p/14966916.html