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

execp go || return

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"