https://github.com/cybercase/gospace
Switch back and forth between generic and project-specific GO workspaces
https://github.com/cybercase/gospace
Last synced: 11 months ago
JSON representation
Switch back and forth between generic and project-specific GO workspaces
- Host: GitHub
- URL: https://github.com/cybercase/gospace
- Owner: cybercase
- License: bsd-3-clause
- Created: 2015-01-07T09:39:47.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2016-09-19T10:29:58.000Z (over 9 years ago)
- Last Synced: 2025-04-08T18:37:22.542Z (about 1 year ago)
- Language: Go
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gospace
Switch back and forth between a generic and a project-specific workspace.
## Install
```
go get github.com/cybercase/gospace
```
## Use
```
$ echo $GOPATH
/home/user/yourgopath
$ cd /path/to/custom/workspace
$ gospace
You're ready to go.
- Type 'source activate' jump into your new workspace
- Type 'deactivate' to step out
$ source activate
(workspace)$ echo $GOPATH
/path/to/custom/workspace
(workspace)$ echo $PATH
/path/to/custom/workspace/bin:...
(workspace)$ deactivate
$ echo $GOPATH
/home/user/yourgopath
```
## Note
- The `activate` script should be placed in your workspace root (aka the folder containing `src/ bin/ pkg/`)
- You can commit the `activate` script since it's not an absolute path