Created
March 27, 2014 09:48
-
-
Save gamesbrainiac/9803962 to your computer and use it in GitHub Desktop.
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
function goinit { | |
export GOROOT=/usr/local/Cellar/go/1.2.1/libexec | |
if [ $# -lt 1 ] | |
then | |
echo "No directories were created." | |
export GOPATH=$(pwd -P) | |
export PATH=$PATH:$GOPATH:$GOPATH/bin | |
else | |
echo "$1 being created" | |
mkdir $1 | |
cd $1 | |
mkdir src bin pkg | |
export GOPATH=$(pwd -P) | |
export PATH=$PATH:$GOPATH:$GOPATH/bin | |
fi | |
tree . | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment