Last active
July 22, 2017 23:56
-
-
Save DanyHenriquez/e63f05733f434cc15c96fe865d4ce9da to your computer and use it in GitHub Desktop.
Simple go enviroment. Inspored by virtualenv
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
# Dany Henriquez | |
# The script always uses the current working directory. | |
function deactivate() { | |
unset -f deactivate | |
unset GOPATH | |
} | |
GOPATH=`pwd` | |
mkdir -p $GOPATH/src | |
mkdir -p $GOPATH/pkg | |
export -f deactivate | |
export GOPATH | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment