Skip to content

Instantly share code, notes, and snippets.

# just execute this command: curl -fsSLo-curl -fsSLo- https://gist.githubusercontent.com/Alldbg/..To-This-Gist... | bash
# Thanks to "https://github.com/codenoid/install-latest-go-linux/blob/main/install-go.sh"
printf "Thanks to https://github.com/codenoid/install-latest-go-linux/blob/main/install-go.sh \n"
printf "Checking latest Go version...\n";
LATEST_GO_VERSION="$(curl --silent https://go.dev/VERSION?m=text)";
LATEST_GO_DOWNLOAD_URL="https://golang.org/dl/${LATEST_GO_VERSION}.linux-amd64.tar.gz "
printf "cd to home ($USER) directory \n"
# See https://help.github.com/articles/ignoring-files for more about ignoring files.
#
# If you find yourself ignoring temporary files generated by your text editor
# or operating system, you probably want to add a global ignore instead:
# git config --global core.excludesfile '~/.gitignore_global'
# Ignore bundler config.
/.bundle
# Ignore all logfiles and tempfiles.