Skip to content

Nightro-Fx/Golang-Installation-Guide

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

Logo Golang Installation Guide

Removing the previous version of go (if any)
sudo snap remove go
sudo rm -rf /usr/local/go
Downloading the latest version of Golang
sudo snap install go --classic
wget https://go.dev/dl/go1.23.3.linux-amd64.tar.gz
Extracting the new version to /usr/local
sudo tar -C /usr/local -xzf go1.23.3.linux-amd64.tar.gz
Opening your shell config
sudo nano ~/.bashrc
Updating your PATH variable. Go to the very end of the file and add this:
export GOROOT=/usr/local/go
export GOPATH=$HOME/go
export PATH=$PATH:$GOROOT/bin:$GOPATH/bin
Run this in the terminal to reload your shell config
source ~/.bashrc
Check your new version
go version

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published