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
    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

    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