about summary refs log tree commit diff stats
path: root/profile/go.sh
blob: baa41871d5a42b95706f944cff8eaedb667a6bfe (plain)
1
2
3
4
5
6
7
8
9
10
11
# Go

export GOPATH="$HOME/src/go"

# https://drewdevault.com/2022/05/25/Google-has-been-DDoSing-sourcehut.html
export GOPROXY=direct

# For the GO binary ... XXX: this is slightly clunky (~/usr/local/go/bin is the directory)
path_add_to_PATH "$GOPATH/go/bin"

command -v go >/dev/null 2>&1 && path_add_to_PATH "$(go env GOPATH)/bin"