go-install

go-install - download and extract golang official binary to /usr/local/go

Installation

$ gem install go-install

Usage

go-install version

Examples
$ sudo go-install latest
$ sudo go-install 1.11.1
$ sudo go-install 1.10.4

PATH setting
export PATH=$PATH:/usr/local/go/bin
export PATH=$PATH:$HOME/go/bin

Examples

centos7_golang.sh

ubuntu18.04_golang.sh

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/s3fxn/go-install.

License

The gem is available as open source under the terms of the MIT License.