Press "Enter" to skip to content

Go Installation

To run a Go program you need a ‘Go compiler’ and a text editor. You can also use an integrated development environment like Visual Studio Code.

Where to download?

Go download

You can download Go fromĀ https://golang.org/dl/. The link has Go binaries for all the major operating systems like Windows, macOS, and Linux.

Freshers Placement

Notepad ++ download

You can download Notepad ++ from https://notepad-plus-plus.org/downloads/

Install Go on Windows

In the previous step, we downloaded the Go setup. In this step, we will look at how to install it.

Double click on the .msi file.Go Setup Step1

 

Click Next.

Freshers Placement

Go Step2

Accept terms and click Next.

Go Step3

The default directory is C:\Go\ but you can change the directory and click Next.

Go Step4

Freshers Placement

Click Install. In some cases, it asks for permission to install, allow it.

Go Step5

Go Step6

Click Finish to complete the setup.

Installation of Go is done.

Verify the installation

You can verify the installation using the go version command.

Open the command prompt and type ‘go version’.

go version command

If you don’t get the above output then check the PATH variable in Environment Variables in Windows.

Go Path Variable

Once you point the GOPATH variable correctly to .exe in Windows, then you are good to run go programs.

In this post, we saw how to install go on windows and how to set path variables. In the next section, we will see the building blocks of the go program.

Comments are closed.