|Photo by Florian Olivo on Unsplash|
Go Language has rapidly gained widespread popularity, attributed to its creation by Google. Countless applications and software are now developed using Go, showcasing its robustness and versatility. This tutorial provides comprehensive insights into installing and configuring GoLang on your local machine.
1. Acquire the Go Tarball from the Official Site:
Begin by visiting the official Golang website and downloading the Go Lang tarball file tailored for your Linux system.
2. Navigate to the Download Directory and Access the Terminal:
Open your terminal within the directory where the download is located and input the following command:
$ wget https://dl.google.com/go/go1.13.linux-amd64.tar.gz
3. Verify the Go Tarball:
Execute the sha256sum command to validate the integrity of the tarball:
4. Extract the Go Tarball:
Unpack the Go tarball using the command:
sudo tar -C /usr/local -xzf go1.13.linux-amd64.tar.gz
5. Adjust the Path Variable:
Navigate to your download directory and append the Go binary path to the PATH variable:
~/Downloads $ export PATH=$PATH:/usr/local/go/bin
Save the file and apply the new PATH variable to your current shell session:
$ source ~/.profile
6. Verify the GoLang Version:
Ensure the successful installation by entering:
$ go version
7. The output should display:
go version go1.13 Linux/amd64
With these steps completed, GoLang is now installed on your Linux system, ready for your coding endeavors. Feel free to comment on any issues or share your insights regarding this tutorial. Should you encounter challenges, don’t hesitate to seek assistance in the comments section.