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.exetoC:\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
PATHand add;C:\Program Files\GoSwitchat the end - Open new CMD, type
goswitch