- Add to Windows Path so that go knows where gcc is
- C:\msys64\mingw64\bin
- Add a new Environment Varible to Windows
- QT_MSYS2=true
- Add to MingW64 Terminal
- .bashrc file
- Add two lines at the bottom like so:
- export GOPATH=”/c/gowork”
- export PATH=”/c/Go/bin:$GOPATH/bin:$PATH”
- .profile
- GOPATH=”/c/gowork”
- PATH=”/c/Go/bin:$GOPATH/bin:$PATH”
- .bashrc file
- After restarting MSYS2 MingW32 terminal you should now be able to see Go with:
- go version