Skip to content

Latest commit

 

History

History
35 lines (24 loc) · 826 Bytes

File metadata and controls

35 lines (24 loc) · 826 Bytes

GOACTIVATE

Script to set PATH, GOPATH and shell prompt for your Go project.

Usage

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 (in src subdirectory).

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.

License

This script is an adaptation of the activate script of the Python virtualenvi project and uses its license (in LICENSE.txt file).