Languages
Go
Installing the latest official Go (Golang) release on Ubuntu in TIDE
Go
Go (Golang) is an open-source programming language designed by Google for building simple, fast, and reliable software at scale.
Installation
Installing Go via the official binary tarball ensures you receive the latest release instead of outdated distribution packages.
Step 1: Download and Extract Go Tarball
Download the official Go binary release (e.g. Go 1.22.5) and extract it to /usr/local:
# Remove any existing Go installation
sudo rm -rf /usr/local/go
# Download and extract official tarball
curl -fsSL https://go.dev/dl/go1.22.5.linux-amd64.tar.gz | sudo tar -C /usr/local -xzStep 2: Set Environment Variables
Add /usr/local/go/bin to your PATH:
echo 'export PATH=$PATH:/usr/local/go/bin' >> ~/.bashrc
export PATH=$PATH:/usr/local/go/binVerification
Verify the Go installation and check the version:
go versionRunning Code
Create a file named main.go:
package main
import "fmt"
func main() {
fmt.Println("Hello, TIDE!")
}Run directly
go run main.goCompile to binary
go build main.go
./main