How to install golang
The official Golang download page page
Install Go language on Windows
Downloading Go lang
Assuming you have Git for Windows, scoop and Gow installed
cd ~/bin/tmp ar2a2c https://dl.google.com/go/go1.13.4.windows-386.zip unzip *.zip mv go /c/go32 rm -rf *
Set the environment variable
- GOROOT - C:\go32
- GOPATH - ~\go
- Path - C:\go32\bin;~\go\bin
Test and ensure
go get github.com/golang/example/hello ~/go/bin/hello
Will output:
Hello, Go examples!
Install go extension of Visual studio Code
Search go, install the first extension
Install all build tools
From Menu: Debug > Open Configurations, Set "program": "${file}",, then you can Ctrl + F5 to run current file
©2012-2019 EasiestSoft