Script to set PATH, GOPATH and shell prompt for your project.
Drop this script in your PATH. To activate environment, go in the root directory of the project and type:
source goactivate
This will set PATH to:
/project/home/bin:$PATH
And it will also set GOPATH to:
/project/home
So that dependencies will be installed in your project home directory. Furthermore, the shell prompt is modified so that it will show activated project between brackets.
To deactivate the environment, type:
deactivate
This will restore your previous PATH, GOPATH and shell prompt.
This script is an adaptation of the activate script of the Python virtualenv project and uses its license (in LICENSE file).
- 0.1.4 (2014-06-13): Removed lib directory in GOPATH.
- 0.1.3 (2014-05-27): Added lib directory in GOPATH.
- 0.1.2 (2014-05-13): Print documentation when running script directly.
- 0.1.1 (2014-05-05): Added direct run detection.
- 0.1.0 (2014-05-05): First release.