Skip to main content
100%

Gist 95d8b883a65f8efcb89318c01a98ab54

✓ Published0🌍 Public
HHerst
Last edited Jan 23, 2026
Created on Jan 23, 2026

This example shows a shell script that automates the installation or upgrade of the Go programming language on a Linux system. The script fetches the latest Go version from the official Go version endpoint, checks the currently installed version, and proceeds to download and extract the appropriate Linux AMD64 tarball. It also updates the system’s PATH by appending the Go binary directory to `/etc/profile` if not already present. The code uses command-line tools like `curl`, `tar`, and `grep` to perform these operations, relying on Go’s public version API and download server.

AI-generated description

Similar vizzes