Compile go package on windows
To build many of 3rd party go packages you will need to install [MSYS2](https://www.msys2.org), the GCC tool chain. See: [Installing GCC & MSYS2](https://github.com/orlp/dev-on-windows/wiki/Installing-GCC--&-MSYS2)
With MSYS2 installed and a terminal open (usually by running `C:\msys64\msys2_shell.cmd -mingw64` ) you then need to setup the environment variables for go and add `$GOROOT/bin` to `$PATH`.
Maybe there is a go package for MSYS2? In that case you can skip the rest of this, but otherwise to get MSYS2 GCC working with a regular windows Go install, keep reading.
To setup the go path I recommend creating a bash enviroment variable setup script, i.e.:
```
export GOROOT=/c/Go #replace with where-ever you have go installed
export PATH=$GOROOT/bin:$PATH
```
or create the file in the terminal directly like so:
```
echo export GOROOT=/c/Go >> ~/.envgo.sh
echo export PATH=\$GOROOT/bin:\$PATH >> ~/.envgo.sh
```
Then either add `. ~/.envgo.sh` to `~/.bash_profile` (and restart the terminal) :
```
echo . ~/.envgo.sh >> ~/.bash_profile
```
or just enter `. ~/.envgo.sh` once before using the `go` command.