Skip to content

Instantly share code, notes, and snippets.

@zekroTJA
Created June 24, 2022 09:29
Show Gist options
  • Save zekroTJA/87d560e04c68703efe384bd273c3901c to your computer and use it in GitHub Desktop.
Save zekroTJA/87d560e04c68703efe384bd273c3901c to your computer and use it in GitHub Desktop.
Download the latest version of Golang
#!/bin/sh
VERSION=$(curl -sL https://go.dev/VERSION?m=text)
curl -L "https://dl.google.com/go/${VERSION}.linux-amd64.tar.gz" | tar -C /usr/local -xzvf -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment