Install Go in Ubuntu | Install Golang [UPDATED]

Опубликовано: 03 Октябрь 2024
на канале: Prateek Rao
655
11

Go is a popular programming language created by Google. The first version is from November 10, 2009 and in 2012 version 1.0 was released. It is a very new language compared to languages ​​like Java, Python, C, C ++ etc., which have been around for 15 years. Years.

This video shows you how to install and configure the Go programming language in Ubuntu programming.

Commands:
We will be installing the latest version of Go which is 1.15.6. To download the latest version, go to the official download page and grab the tarball or use the following wget command to download it on the terminal.
$ sudo wget https://golang.org/dl/go1.15.5.linux-...

Next, extract the tarball to /usr/local directory.
$ sudo tar -C /usr/local -xzf go1.15.5.linux-amd64.tar.gz

Add the go binary path to .bashrc file /etc/profile (for a system-wide installation).
export PATH=$PATH:/usr/local/go/bin

After adding the PATH environment variable, you need to apply changes immediately by running the following command.
$ source ~/.bashrc

Now verify the installation by simply running the go version in the terminal.
$ go version

You can also install go from the snap store too.
$ sudo snap install --classic --channel=1.15/stable go

#golang #ubuntu

Like Comment Share