-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,24 @@ | ||
# GoSwitch | ||
|
||
Easily switch GOPATH working directory | ||
|
||
## Install | ||
|
||
### Build from source | ||
|
||
- 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 to PATH | ||
|
||
Add goswitch executable to PATH variable, so you can access goswitch everywhere on cmd/terminal | ||
|
||
#### Windows | ||
|
||
- Copy `goswitch.exe` to `C:\Program Files\GoSwitch\goswitch.exe` | ||
- Open `Control Panel` -> `System and Security` -> `System` -> `Advanced system settings` -> Click button `Environment Variables..` | ||
- On tab User variables for %user%, edit `PATH` and add `;C:\Program Files\GoSwitch` on end of text | ||
- Open new CMD, type `goswitch` |