{"id":13567605,"url":"https://github.com/canha/golang-tools-install-script","last_synced_at":"2025-04-04T01:32:34.393Z","repository":{"id":12894730,"uuid":"15571638","full_name":"canha/golang-tools-install-script","owner":"canha","description":"Simple Bash script to automate Go language tools single user installation or even removal.","archived":false,"fork":false,"pushed_at":"2024-08-14T01:03:39.000Z","size":103,"stargazers_count":544,"open_issues_count":6,"forks_count":136,"subscribers_count":11,"default_branch":"master","last_synced_at":"2024-11-04T22:37:24.570Z","etag":null,"topics":["bash","fish-shell","golang","installer","linux","macos","shell"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/canha.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"liberapay":"canha"}},"created_at":"2014-01-01T23:10:01.000Z","updated_at":"2024-11-03T16:30:07.000Z","dependencies_parsed_at":"2024-08-01T13:39:43.703Z","dependency_job_id":null,"html_url":"https://github.com/canha/golang-tools-install-script","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/canha%2Fgolang-tools-install-script","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/canha%2Fgolang-tools-install-script/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/canha%2Fgolang-tools-install-script/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/canha%2Fgolang-tools-install-script/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/canha","download_url":"https://codeload.github.com/canha/golang-tools-install-script/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247107815,"owners_count":20884793,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bash","fish-shell","golang","installer","linux","macos","shell"],"created_at":"2024-08-01T13:02:36.255Z","updated_at":"2025-04-04T01:32:29.360Z","avatar_url":"https://github.com/canha.png","language":"Shell","funding_links":["https://liberapay.com/canha"],"categories":["Shell","HarmonyOS"],"sub_categories":["Windows Manager"],"readme":"# golang-tools-install-script\n\nBash script to automate installation and removal of single-user Go language tools.\n\nFeel free to change the variables on the beginning to match whatever version of Go you need.\n\nTested working on:\n\n* :white_check_mark: Ubuntu 16.04 to 20.04\n* :white_check_mark: macOS Sierra (10.12) to Big Sur (11.3)\n\nSupported shells:\n* Bash, fish, Zsh\n\n## :hammer: Requirements\n* `wget` or `curl`\n* Bash shell\n\n## :fast_forward: Install\n\nDownload and run with `wget` or `curl`. Here's the short version using the official git.io shortening:\n\n```shell\n# Linux typically has wget installed\nwget -q -O - https://git.io/vQhTU | bash\n\n# macOS typically has curl installed\ncurl -L https://git.io/vQhTU | bash\n```\n\nOr, if you are more comfortable with the raw URL:\n```shell\nwget -q -O - https://raw.githubusercontent.com/canha/golang-tools-install-script/master/goinstall.sh | bash\n\n# or...\ncurl https://raw.githubusercontent.com/canha/golang-tools-install-script/master/goinstall.sh | bash\n```\n\n## :package: Install a custom Go version\n\nPass the `--version` option into the script including the version that you wish to install.\n\n##### Example:\n\n```shell\nwget -q -O - https://git.io/vQhTU | bash -s -- --version 1.18\n\n# or...\ncurl -L https://git.io/vQhTU | bash -s -- --version 1.18\n```\n\n## :no_entry_sign: Uninstall\n\nPass the `--remove` option into the script:\n\n```shell\nwget -q -O - https://git.io/vQhTU | bash -s -- --remove\n\n# or...\ncurl -L https://git.io/vQhTU | bash -s -- --remove\n```\n\n## :pencil: Notes\n\nBy default, the script will create `.go` and `go` folders on your home directory and add the needed variables and `PATH` expansion.\n\n`$HOME/.go is the directory where Go will be installed to.`\n\n`$HOME/go is the default workspace directory.`\n\nRead more about the [workspace](http://golang.org/doc/code.html).\n\nIn order to install Go into another location, set the environment variables `$GOROOT` and `$GOPATH` before (un)installing:\n\n```shell\nexport GOROOT=/opt/go\nexport GOPATH=$HOME/projects/go\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcanha%2Fgolang-tools-install-script","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcanha%2Fgolang-tools-install-script","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcanha%2Fgolang-tools-install-script/lists"}