Instagram
youtube
Facebook
Twitter

Installation

Install Golang on the Windows

Download Link

Steps to download

  • Download the MSI file from the above-given link and follow the instructions to complete the installation.
  • After completing the installation. 
    • Click on the start menu.
    • Search for cmd and open it.
    • In the command prompt type go version.
    • Confirm if it prints the golang version.

 

Install Golang on Mac

Download Link

Steps to download

  • Download the package file from the above-given link and follow the instructions to complete the installation.
  • After completing the installation open the terminal and write go version.
  • Confirm if it prints the golang version.

 

Install Golang on Linux

Download Link

Steps to download

  • Remove previous golang installed version - 
    $ rm -rf /usr/local/go && tar -C /usr/local -xzf go1.18.linux-amd64.tar.gz
    
  • Now add /usr/local/go/bin to the PATH environment variable.
  • Then - export PATH=$PATH:/usr/local/go/bin
  • Verify the installation with go version.