gowork is a tool for creating Go workspaces. It also provides a script for easily shelling into and out of them, much like environments created by Python
bundler, etc. (In fact, the
activate script it generates is cribbed mostly from virtualenv for Python.)
$ gowork myenv $ source myenv/bin/activate (myenv)$ go get github.com/nickoneill/go-dropbox # or whatever (myenv)$ go list github.com/nickoneill/go-dropbox github.com/nickoneill/go-dropbox (myenv)$ deactivate $ go list github.com/nickoneill/go-dropbox can't load package: package github.com/nickoneill/go-dropbox: import "github.com/nickoneill/go-dropbox": cannot find package
- Go 1
go get github.com/markpasc/goworkto install the
goworktool into your Go tree or current workspace.
If you installed Go on the Mac using Homebrew, you'll need to
brew unlink go && brew link go to make the
gowork command available.