Skip to content

This tool allows you to install any version of go, update the current version and keep multiple versions locally and switch on demand.

License

Notifications You must be signed in to change notification settings

earentir/updatego

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

updatego

A simple tool to install and update go to its latest version

Install

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

[root@themis ~]# updatego install

Expected Output

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

Go Mod

Go Reference

Dependancies

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

  • Check paths
  • Install go
  • make changes in bashrc

Authors

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.

License

About

This tool allows you to install any version of go, update the current version and keep multiple versions locally and switch on demand.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published