All Projects → canha → Golang Tools Install Script

canha / Golang Tools Install Script

Licence: apache-2.0
Simple Bash script to automate Go language tools single user installation or even removal.

Programming Languages

shell
77523 projects
golang
3204 projects
bash
514 projects

Projects that are alternatives of or similar to Golang Tools Install Script

theme-scorphish
Compact. Sufficient. PWD, Ruby+RVM, Python+VENV, Git status, Rust, NodeJS.
Stars: ✭ 33 (-87.06%)
Mutual labels:  fish-shell
modern-linux.info
Learning Modern Linux book website
Stars: ✭ 35 (-86.27%)
Mutual labels:  fish-shell
scoop-for-jp
Scoop bucket for ALL Japanese users.
Stars: ✭ 17 (-93.33%)
Mutual labels:  installer
dotfiles
🐟 sheriferson's dot, config, and setup files
Stars: ✭ 13 (-94.9%)
Mutual labels:  fish-shell
cargo-wix
A cargo subcommand to build Windows installers for rust projects using the WiX Toolset
Stars: ✭ 142 (-44.31%)
Mutual labels:  installer
bali
Bali - Minimalist Golang build and packaging tool
Stars: ✭ 59 (-76.86%)
Mutual labels:  installer
po-util
Classic Edition of po-util: The Ultimate Local Particle Experience for Linux and macOS
Stars: ✭ 51 (-80%)
Mutual labels:  installer
FineCMS
PHP application using my own MVC architecture and PDO database interface.
Stars: ✭ 14 (-94.51%)
Mutual labels:  installer
fish logo
🐠 Fish shell colorful ASCII-art logo
Stars: ✭ 82 (-67.84%)
Mutual labels:  fish-shell
glitter
Display git status information in your shell prompt
Stars: ✭ 47 (-81.57%)
Mutual labels:  fish-shell
linux-installer
Universal GNU+Linux installer script
Stars: ✭ 16 (-93.73%)
Mutual labels:  installer
fish-exa
🐟 exa aliases for fish
Stars: ✭ 24 (-90.59%)
Mutual labels:  fish-shell
NSIS-UI-Plugin
Create NSIS Modern UI Setup by Using Thirdparty UI Library(such as Qt, DuiLib)
Stars: ✭ 55 (-78.43%)
Mutual labels:  installer
ministaller
Lightweight installer/updater for portable desktop applications
Stars: ✭ 15 (-94.12%)
Mutual labels:  installer
aplus
Aplus Command Line Tool
Stars: ✭ 71 (-72.16%)
Mutual labels:  installer
mkosxinstallusb
Linux shell script that creates USB flash drive booting OS X installer
Stars: ✭ 34 (-86.67%)
Mutual labels:  installer
fontster
Font installer for Android.
Stars: ✭ 33 (-87.06%)
Mutual labels:  installer
installer
Installer files for OpenJDK binaries
Stars: ✭ 86 (-66.27%)
Mutual labels:  installer
ansible-role-rsyslog
Install and configure rsyslog on your system.
Stars: ✭ 14 (-94.51%)
Mutual labels:  installer
cypress-cli
CLI for Cypress.io Desktop App
Stars: ✭ 39 (-84.71%)
Mutual labels:  installer

golang-tools-install-script Build Status

Bash script to automate installation and removal of single user Go language tools.

Feel free to change the variables on the beginning to match whatever version of Go you need.

Tested working on:

  • ✅ Ubuntu 16.04 to 18.04
  • ✅ macOS Sierra (10.12) to Catalina (10.15)

Supported shells:

  • Bash, fish, Zsh

🔨 Requirements

  • wget or curl
  • Bash shell

⏩ Install

Download and run with wget or curl. Here's the short version using the official git.io shortening:

# Linux typically has wget installed
wget -q -O - https://git.io/vQhTU | bash

# macOS typically has curl installed
curl -L https://git.io/vQhTU | bash

Or, if you are more comfortable with the raw URL:

wget -q -O - https://raw.githubusercontent.com/canha/golang-tools-install-script/master/goinstall.sh | bash

# or...
curl https://raw.githubusercontent.com/canha/golang-tools-install-script/master/goinstall.sh | bash

📦 Install a custom Go version

Pass the --version option into the script including the version that you wish to install.

Example:
wget -q -O - https://git.io/vQhTU | bash -s -- --version 1.13.2

# or...
curl -L https://git.io/vQhTU | bash -s -- --version 1.13.2

🚫 Uninstall

Pass the --remove option into the script:

wget -q -O - https://git.io/vQhTU | bash -s -- --remove

# or...
curl -L https://git.io/vQhTU | bash -s -- --remove

📝 Notes

By default, the script will create .go and go folders on your home directory and add the needed variables and PATH expansion.

$HOME/.go is the directory where Go will be installed to.

$HOME/go is the default workspace directory.

Read more about the workspace.

In order to install Go into another location, set the environment variables $GOROOT and $GOPATH before (un)installing:

export GOROOT=/opt/go
export GOPATH=$HOME/projects/go
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].