Skip to content

Instantly share code, notes, and snippets.

@DanyHenriquez
Last active July 22, 2017 23:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DanyHenriquez/e63f05733f434cc15c96fe865d4ce9da to your computer and use it in GitHub Desktop.
Save DanyHenriquez/e63f05733f434cc15c96fe865d4ce9da to your computer and use it in GitHub Desktop.
Simple go enviroment. Inspored by virtualenv
# 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