blob: 38e9fe0845542d297b919157a7a86f162445d29f [file] [log] [blame] [view]
Rick Li40524ee2018-09-01 18:59:46 -07001[tutorial](https://medium.freecodecamp.org/setting-up-go-programming-language-on-windows-f02c8c14e2f)
Rick Li6a0f8f32018-09-01 18:52:38 -07002`setx scoopApps "C:\Users\%username%\scoop\apps" /M`
3`echo %scoopApps%`
Rick Lif3a45ec2018-09-01 18:46:56 -07004`scoop install go `
Rick Li40524ee2018-09-01 18:59:46 -07005`=======Phase 3: Create the GOPATH environment variable===`
6`setx GOPATH "%scoopApps%/go" /M`
Rick Lif3a45ec2018-09-01 18:46:56 -07007`echo %GOPATH%`
8`setx GOBIN "%GOPATH%/bin" /M`
9`echo %GOBIN%`
Rick Li40524ee2018-09-01 18:59:46 -070010`setx PATH "%PATH%;%GOBIN%" /M`
11`=======Phase 4: Test and ensure===`
12`go get github.com/golang/example/hello`
13`%GOPATH%/bin/hello`