17 lines
383 B
Text
17 lines
383 B
Text
|
## Description: Bash configuration for the Go setup
|
||
|
## vim: ft=sh :
|
||
|
|
||
|
if [ -f "${HOME}/.local/software/go/bin/go" ]; then
|
||
|
export GOPATH=${XDG_DATA_HOME}/go
|
||
|
export GOROOT=${HOME}/.local/software/go
|
||
|
export PATH=${PATH}:${GOPATH}/bin
|
||
|
|
||
|
if ! [ -d "${GOPATH}" ]; then
|
||
|
mkdir ${GOPATH}
|
||
|
fi
|
||
|
|
||
|
export GOOS=linux
|
||
|
export GOARCH=amd64
|
||
|
export CGO_ENABLED=0
|
||
|
fi
|