banner



How To Install Go Language In Windows

Golang, but called Go, is a complimentary, modern, and open up-source programming language developed by Google in 2012. It is a lower-level compiled programming language that allows you to build fast and efficient applications in a unproblematic and fast syntax. It is used to build popular applications, including Kubernetes, Docker, Terraform, and many more.

Equally mentioned, Get is a compiled language, significant the source code is compiled into a binary executable which tin so be executed. It comes with a compiler that you need to install earlier writing any Go programme.

This guide will discuss how to install and configure the go compiler in the major operating systems, including Windows, Linux, and MacOS.

Install Get in Windows

Let'southward start by learning how to install Become on Windows.

Open up your browser and open the link shown beneath:

https://go.dev/

Select the download button to go to the downloads page. Select the msi installer package for the Windows organization and download.

Once the msi installer package is downloaded, open the installer to initialize the installation process.

Past default, go will be installed in the Program Files for 32bit and Plan Files (x86) for 64bit systems. Keep in mind that y'all tin change this to your desired location.

Follow the instructions in the installer bundle and consummate the process.

Once installed, open the command prompt to verify go is installed and available in the path. Enter the control as:

> go version

get version go1. 17 . 6 windows/amd64

If you get the installed become version, and so you take successfully installed go on your windows organisation.

Install Keep Linux

Go is a cross-platform language and thus tin be installed on multiple operating systems. In this section, we volition learn how to install Get on Linux.

In this case tutorial, we will use a Debian 11 system. However, the instructions should work on any Linux distribution.

Start past updating the packages:

sudo apt-get update

sudo apt-get upgrade

Once updated, open your browser and navigate to the become downloads folio equally provided in the resource beneath:

https://go.dev/dl/

Locate your desired go version and copy the download link.

Open up the last and enter the control:

sudo apt-get install wget

wget https: //get.dev/dl/go1.17.6.linux-amd64.tar.gz

The commands above should install the wget utility and use it to download the tarball archive of the become compiler.

One time downloaded, check the file exists using the LS command as:

The command should prove the files, including the go tarball annal, as shown:

The adjacent step is to extract the contents of the archive. We can apply the command equally:

tar -xzvf go1. 17 . 6 .linux-amd64.tar.gz

The command above should extract the annal and create a directory called to get.

The next stride is to gear up the path for go. This allows the go executable to be accessible outside the principal get directory or without an absolute path.

For convenience, we can move the go directory to a more reasonable directory as:

The command higher up should motility the go directory from the downloaded location to the /usr/local directory.

To ready the path to the get binary, nosotros can edit the .profile file in the home directory, equally shown in the commands beneath:

Add the post-obit line to the file:

export PATH=$PATH: /usr/local/ go /bin

Apply the changes:

Finally, verify that get is installed successfully by running the command:

The command should return the installed go version every bit:

get version go1. 17 . 6 linux/amd64

About the author

My name is John and am a fellow geek like you. I am passionate most all things computers from Hardware, Operating systems to Programming. My dream is to share my knowledge with the globe and help out boyfriend geeks. Follow my content by subscribing to LinuxHint mailing listing

Source: https://linuxhint.com/install-configure-go-compiler/

Posted by: walkeriiii1981.blogspot.com

0 Response to "How To Install Go Language In Windows"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel