{"id":13906255,"url":"https://github.com/kerolloz/go-installer","last_synced_at":"2025-04-09T05:12:14.847Z","repository":{"id":34957602,"uuid":"190197403","full_name":"kerolloz/go-installer","owner":"kerolloz","description":"Go-Installer: Effortless Golang Installation with One Command! 🚀","archived":false,"fork":false,"pushed_at":"2025-03-14T12:06:36.000Z","size":83,"stargazers_count":173,"open_issues_count":3,"forks_count":20,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-02T04:04:59.744Z","etag":null,"topics":["bash","bash-script","go","go-installer","golang","google","install","installer","linux","mac","script","shell","shell-script"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kerolloz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2019-06-04T12:32:00.000Z","updated_at":"2025-03-29T08:13:52.000Z","dependencies_parsed_at":"2024-08-14T19:29:29.606Z","dependency_job_id":null,"html_url":"https://github.com/kerolloz/go-installer","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kerolloz%2Fgo-installer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kerolloz%2Fgo-installer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kerolloz%2Fgo-installer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kerolloz%2Fgo-installer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kerolloz","download_url":"https://codeload.github.com/kerolloz/go-installer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247980844,"owners_count":21027808,"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","bash-script","go","go-installer","golang","google","install","installer","linux","mac","script","shell","shell-script"],"created_at":"2024-08-06T23:01:32.096Z","updated_at":"2025-04-09T05:12:14.824Z","avatar_url":"https://github.com/kerolloz.png","language":"Shell","funding_links":[],"categories":["HarmonyOS"],"sub_categories":["Windows Manager"],"readme":"\u003ch1 align=\"left\"\u003eGo Installer 🐹\n  \u003ca target=\"_blank\" href=\"https://kounter.kerolloz.dev\"\u003e\n    \u003cimg align=\"right\" src=\"https://kounter.kerolloz.dev/badge/kerolloz.go-installer?style=for-the-badge\u0026color=69d7e4\u0026label=Views\u0026labelColor=69d7e4\" /\u003e\n  \u003c/a\u003e\n\u003c/h1\u003e\n\n\u003cimg align=\"right\" src=\"https://user-images.githubusercontent.com/36763164/169433445-04f8485b-aa8d-45d0-a3cf-6e69c6456b2f.png\" width=\"33%\"\u003e\n\n\u003e Install Golang on Linux or Mac \u003cstrike\u003ewith hassle of environment variables setting\u003c/strike\u003e.\n\n![Contributions Welcome](https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat)\n[![.github/workflows/test.yml](https://github.com/kerolloz/go-installer/actions/workflows/test.yml/badge.svg)](https://github.com/kerolloz/go-installer/actions/workflows/test.yml)\n\n## How to use it 🤔\n\n### Installing (or even _updating_) Go ⬇️\n\nYou can _clone_ the repository and then run `bash go.sh`.\n\nOr by simply running whatever suits you from the following commands (`wget` or `curl`):\n\n```bash\n# downloads then runs the script\nwget https://git.io/go-installer.sh \u0026\u0026 bash go-installer.sh\n```\n\n```bash\n# doesn't download the script ~ runs the script directly\nbash \u003c(curl -sL https://git.io/go-installer)\n```\n\nNow, you can go grab a cup of coffee :coffee:, sit back :relieved: and relax while the magic happens! :crystal_ball:\n\n\u003e **Note**  \n\u003e By default the script will create `.go` and `go` folders on your _HOME_ directory \u0026 add the needed variables to your _PATH_ variable.\n\n`$HOME/.go` is where Go will be installed.\n`$HOME/go` is the default workspace.\n\nIn order to install Go to another location or set custom workspace. You can set environment variables GOROOT or GOPATH before installing (or uninstalling) Go.\n\nFor example:\n\n```bash\nexport GOROOT=/opt/go            # where Go is installed\nexport GOPATH=$HOME/projects/go  # your workspace\n```\n\nRead more about [workspaces](https://go.dev/doc/code.html#Workspaces) in Go.\n\n### Specifying a version to install 🧐\n\nBy default, the script installs the latest version available.  \nYou can choose what version to install by adding the `--version` flag, followed by the version you want to install.\n\n```\nbash go.sh --version 1.19.4\n```\n\n### Show Help Message 🍁\n\nTo show the following help message use `bash go.sh help`.\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://user-images.githubusercontent.com/36763164/207301551-c686e069-df78-4d28-af78-bedd02b36354.gif\" /\u003e\n\u003c/p\u003e\n\n### Uninstalling Go ❌\n\n```bash\nbash go.sh remove\n```\n\n## How it works ⚙️\n\nThe script does the following steps:\n\n- Checks if Go is already installed.\n- Detects the installed operating system (Linux or Mac).\n- Detects system architecture (armv6, armv8, amd64, i386).\n- Parses the \u003chttps://go.dev/dl\u003e download page to find the latest version of Go that is available for your platform and architecture.\n- Exits if you have the latest version of Go already installed.\n- Downloads the latest version of Go.\n- Creates the needed directories for workspace and Go binaries.\n- Extracts the files of the downloaded package.\n- Adds the binaries to PATH environment variable.\n- Removes the downloaded installation file.\n\nhttps://user-images.githubusercontent.com/36763164/207317882-7e50e2de-628e-43f0-bf7c-bee6b1e68001.mp4\n\n\u003cp align=\"center\"\u003e🔥 WORKS LIKE A CHARM 🚀\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkerolloz%2Fgo-installer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkerolloz%2Fgo-installer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkerolloz%2Fgo-installer/lists"}