Go on Windows
First, let’s install Scoop, to manage your tools.
Open a PowerShell window, and enter this command:
Set-ExecutionPolicy RemoteSigned -scope CurrentUser
Press A when prompted. This ensures that PowerShell can run Scoop.
Next, install Scoop:
iex (new-object net.webclient).downloadstring('https://get.scoop.sh')
Now enter this command:
scoop install gcc openssh git go nodejs-lts
- Go itself
- The GCC compiler, so that downloaded C libraries will build on your computer
- Git, for version control
These are all of the things that Buffalo will need.
The Go tool will automatically create a folder called go in your user account when it is needed. This is your Go workspace. To ensure that Go applications that you compile in the workspace run correctly, enter this in a PowerShell window to register the correct folder:
[Environment]::SetEnvironmentVariable("Path", $env:Path + ";$($env:HOMEDRIVE)$($env:HOMEPATH)\go\bin", [EnvironmentVariableTarget]::User)
To install Buffalo:
go get -u -v github.com/gobuffalo/buffalo/...
Once it is installed, use the buffalo utility to create and manage your Web applications.