Created
April 23, 2019 05:42
-
-
Save KyonLi/cc1826eba85be716aa707b6172cd5f1b to your computer and use it in GitHub Desktop.
sets envs for golang
This file contains 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
#!/bin/bash | |
# sets envs for golang | |
if [ -z "$GOPATH" ]; then | |
export GOROOT="/usr/local/go" | |
export GOPATH="$HOME/go" | |
export PATH="$PATH:$GOPATH/bin:$GOROOT/bin" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment