A bash script to get the most recent version of Golang.
Find a file
2026-04-29 19:49:36 -07:00
gopher-getter.sh feat: add gopher-getter.sh script 2026-04-29 19:47:14 -07:00
LICENSE docs: add README.md and LICENSE 2026-04-29 19:49:36 -07:00
README.md docs: add README.md and LICENSE 2026-04-29 19:49:36 -07:00

Gopher Getter

Gopher Getter is a simple, cross-platform Bash script to automatically download and install the latest stable version of Go. It verifies the download using SHA256 checksums from the official Go JSON API.

Features

  • Automatically detects the latest stable Go version.
  • Works on Linux and macOS.
  • Verifies SHA256 checksums for integrity.
  • Installs Go to ~/.local/go by default.
  • Easy to integrate into your PATH.

Installation

  1. Clone the repository to ~/projects/gopher-getter:
mkdir -p ~/projects
git clone https://github.com/your-username/gopher-getter.git ~/projects/gopher-getter
  1. Make the script executable:
chmod +x ~/projects/gopher-getter/gopher-getter.sh
  1. Symlink the script to your local bin directory:
mkdir -p ~/.local/bin
ln -s ~/projects/gopher-getter/gopher-getter.sh ~/.local/bin/gopher-getter
  1. Ensure that ~/.local/bin is in your path:
export PATH="$HOME/.local/bin:$PATH"

You can add the above line to your shell configuration file (~/.bashrc, ~/.zshrc, etc.) to make it permanent.

Usage

Simply run:

gopher-getter

The script will:

  • Check the latest stable Go version.
  • Compare it to your current installation.
  • Download and install the latest version if needed.

Contributing

If you see a problem or improvement that can be made, please open up an issue to discuss it.

License

Copyright© 2026 Ryan Hendrickson. Released under the BSD-2-Clause License. See LICENSE for details.