Back to Gohacks
Gohacks

Gom

Go Manager — SDKMAN-style version manager. Zero dependencies on Go itself. Works on any Linux or macOS.

Install with one command:

curl -sSL https://raw.githubusercontent.com/gohacks/gom/main/install.sh | bash

Why Gom?

Gom lets you install, switch, and manage multiple Go versions without touching system packages. Inspired by SDKMAN, built in pure Bash.

No Go required — Install Gom on a fresh machine; it fetches Go for you.
Per-project versions — Use gom use 1.23 in one terminal, gom use 1.24 in another.
Uses go.dev — Fetches releases directly from the official Go download page.

Installation

Remote install (recommended):

curl -sSL https://raw.githubusercontent.com/gohacks/gom/main/install.sh | bash

Or from the project folder:

bash install.sh

The script automatically configures your PATH in .bashrc and .zshrc.

Commands

Command Description
gom list📋 List available versions from go.dev
gom list installed📋 List installed versions
gom install latest📋 Install latest stable version
gom install 1.24📋 Install specific version (e.g. Go 1.24.x)
gom use latest📋 Set latest installed as default
gom use 1.24📋 Set default version
gom current📋 Show current default version
gom init📋 Generate command to add to PATH

Structure

Platforms

Dependencies