[unmaintained]
- Different env for each go project.
- Similiar to virtual env for python.
- Commands like virtualenvwrapper.
- Download the install file :
curl -o install.sh https://github.com/jinut2/goenv/master/install.sh. - Run it :
source install.sh. - Add this line to your .bashrc or corresponding file :
source ~/.goenv/goenv.bash. - Restart your terminal.
mkgoenv project-name: creates a go project with goenv in the current directory.rmgoenv project-name: deletes the project goenv.goenv project-name: loads the project goenv.dropgoenv: deactivate/exit the goenv.lsgoenv: list existing goenvs.addtogoenv project-name project-path: add existing project to goenv.whichgoenv: displays the current goenv.opengoenv: open the goenv project src in the preferred editor.
echo $EDITORto see the default editor, if preferred editor is not specified.- The project-name would be the goenv name.
- Include the whole path while
addtogoenvfor project-path. eg. ~/some/test-project/