https://github.com/earentir/updatego
This tool allows you to install any version of go, update the current version and keep multiple versions locally and switch on demand.
https://github.com/earentir/updatego
go golang installer manager multiversion update
Last synced: 4 months ago
JSON representation
This tool allows you to install any version of go, update the current version and keep multiple versions locally and switch on demand.
- Host: GitHub
- URL: https://github.com/earentir/updatego
- Owner: earentir
- License: gpl-2.0
- Created: 2024-03-06T21:09:16.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-08-19T11:30:11.000Z (10 months ago)
- Last Synced: 2025-08-19T13:31:32.218Z (10 months ago)
- Topics: go, golang, installer, manager, multiversion, update
- Language: Go
- Homepage:
- Size: 4.09 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# updatego
A simple tool to install and update go to its latest version
## Install
```bash
curl -fsSL https://github.com/earentir/updatego/releases/latest/download/updatego -o updatego && chmod +x updatego
```
## Usage
```
$ ./updatego
Usage: updatego [OPTIONS] COMMAND [arg...]
A simple golang version manager
Options:
-v, --version Show the version and exit
--verbose Enable verbose output
Commands:
install Install Go
status Check Go installation status
latest Print the latest Go version available
update Update Go to the latest version
list List all local Go versions
switch Switch to a specific Go version
Run 'updatego COMMAND --help' for more information on a command.
```
## Examples
### Install current release
```bash
[root@themis ~]# updatego install
```
#### Expected Output
```bash
Installing Go version: 1.25.0
Downloading go1.25.0.linux-amd64.tar.gz, writing to: go1.25.0.linux-amd64.tar.gz
URL: https://go.dev/dl/go1.25.0.linux-amd64.tar.gz
Writing to: /tmp/go1.25.0.linux-amd64.tar.gz
####################################################################################################################
Extracting the new Go version...
Switching to the newly installed Go version: 1.25.0
Switched to Go version 1.25.0 successfully.
Setting up environment variables...
GOROOT set to: /usr/local/go
GOPATH set to: /root/go
```
## Dependancies & Documentation
[]()
[](https://pkg.go.dev/github.com/earentir/updatego)
[]()
## Contributing
Contributions are always welcome!
All contributions are required to follow the https://google.github.io/styleguide/go/
All code contributed must include its tests in (_test) and have a minimum of 80% coverage
## Vulnerability Reporting
Please report any security vulnerabilities to the project using issues or directly to the owner.
## Code of Conduct
This project follows the go project code of conduct, please refer to https://go.dev/conduct for more details
## Roadmap
- [x] Check paths
- [x] Install go
- [ ] make changes in bashrc
## Authors
- [@earentir](https://www.github.com/earentir)
## License
I will always follow the Linux Kernel License as primary, if you require any other OPEN license please let me know and I will try to accomodate it.
[](https://opensource.org/license/gpl-2-0)