Easily switch GOPATH working directory
- Install Go from https://golang.org/
- Setup GOPATH, tutorial: https://github.com/golang/go/wiki/SettingGOPATH
- Download GoSwitch source on Release tab.
- Get dependencies,
go get gopkg.in/alecthomas/kingpin.v2
- Build,
go build goswitch.go
Add goswitch executable to PATH variable, so you can access goswitch everywhere on cmd/terminal
- Copy
goswitch.exe
toC:\Program Files\GoSwitch\goswitch.exe
- Open
Control Panel
->System and Security
->System
->Advanced system settings
-> Click buttonEnvironment Variables..
- On tab User variables for %user%, edit
PATH
and add;C:\Program Files\GoSwitch
at the end - Open new CMD, type
goswitch