Last active
January 12, 2020 08:22
-
-
Save kena0ki/90970e449e7a28c6e9cc93567be6c32c to your computer and use it in GitHub Desktop.
Golang environment variable for Centos (path: /etc/profile.d/golang.sh)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[[ ! "$PATH" =~ "/usr/local/go/bin" ]] && export PATH="$PATH:/usr/local/go/bin" | |
[[ -z "$GOPATH" ]] && export GOPATH="$HOME/go" | |
[[ ! "$PATH" =~ "$GOPATH/bin" ]] && export PATH="$PATH:$GOPATH/bin" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment