An open API service indexing awesome lists of open source software.

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

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