Created
August 25, 2019 09:25
-
-
Save vitonzhangtt/b3b1e038d18bf374822e3edab762af06 to your computer and use it in GitHub Desktop.
Setup environment variables for Go Workspace
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 | |
############################################### | |
# Export env via shell script: source ./setupEnvShellScript.sh | |
# $source ./setupEnvForGoWorkspace.sh | |
# | |
################################################ | |
################ Export GOPATH ############## | |
PWD=`pwd` | |
#echo $PWD | |
export GOPATH=$PWD | |
################ Export GOBIN ############## | |
export GOBIN=$GOPATH/bin | |
################ Add GOBIN to PATH ############## | |
PATH=$PATH:$GOBIN | |
export PATH |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment