Skip to content

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

License

Notifications You must be signed in to change notification settings

c4s4/goactivate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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).

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages