Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/petersonwsantos/golang-installation
Installation Golang script
https://github.com/petersonwsantos/golang-installation
go shell-script
Last synced: about 15 hours ago
JSON representation
Installation Golang script
- Host: GitHub
- URL: https://github.com/petersonwsantos/golang-installation
- Owner: petersonwsantos
- License: apache-2.0
- Created: 2018-06-15T13:34:43.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-06-15T13:39:39.000Z (over 6 years ago)
- Last Synced: 2024-05-31T04:42:41.866Z (6 months ago)
- Topics: go, shell-script
- Language: Shell
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# golang-tools-install-script
Bash script to automate Go language tools single user installation (Linux) or even removal.
Latest filename for download at the time of this writting was for version 1.9.3 of Go. Feel free to change the variables on the beggining to match whatever version you need.Tested with:
* Ubuntu
## Installation
Download with wget or clone the repository
```shell
wget https://raw.githubusercontent.com/petersonwsantos/golang-installation/master/goinstall.sh
```## Installation examples
To install on Linux:
```shell
bash goinstall.sh --64
```Or, to install 32-bit:
```shell
bash goinstall.sh --32
```To install on macOS:
```shell
bash goinstall.sh --darwin
```## Uninstall
```shell
bash goinstall.sh --remove
```## Notes
The script will create `.go` and `go` folders on your home directory, add the needed variables and PATH expansion.
`$HOME/.go folder is your where Go will be installed to.`
`$HOME/go is the default workspace.`
Read more about the [workspace](http://golang.org/doc/code.html).