- Notifications
You must be signed in to change notification settings - Fork4
Go Version Manager (same as rbenv, pyenv, tfenv and tgenv)
License
NotificationsYou must be signed in to change notification settings
ankitcharolia/goenv
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
goenv is a command-line tool to manage multiple versions of Golang on your system.
Releases:https://github.com/ankitcharolia/goenv/releases
LINUX
wget -O - https://github.com/ankitcharolia/goenv/releases/latest/download/goenv-linux-amd64.tar.gz| tar -xz -C~/.goexport PATH=$HOME/.go:$PATH>>~/.bashrcsource~/.bashrc
MAC
wget -O - https://github.com/ankitcharolia/goenv/releases/latest/download/goenv-darwin-amd64.tar.gz| tar -xz -C~/.goexport PATH=$HOME/.go:$PATH>>~/.zshrcsource~/.zshrc
goenv provides several commands to manage Golang versions on your system.
$ goenv --helpUsage: goenv [flags] [<options>]Flags: --help goenvhelpcommand --install Install a specific version of GOLANG --list List all installed GOLANG versions --list-remote List all remote versions of GOLANG --uninstall Uninstall a specific version of GOLANG --use Use a specific version of GOLANG
$ goenv --list-remote1.21rc31.21rc21.20.61.20.51.20.41.20.31.20.21.20.1...
$ goenv --install 1.20.6Installing Go version 1.20.6...https://dl.google.com/go/go1.20.6.linux-amd64.tar.gz95.57 MiB / 95.57 MiB [-----------------------------------------------------------------------------------------------] 100.00% 13.92 MiB p/s 7.1sGo version 1.20.6 is installed at$HOME_DIRECTORY/.go/1.20.6.
$ goenv --use 1.20.6Using Go version 1.20.6.Please make sure to execute:source~/.bashrc
$ goenv --listInstalled Golang versions:* 1.20.6 (Currently active GOLANG version) 1.20.5 1.20.4
- Bash
- Zsh
Feel free to create an Issue/Pull Request if you find any bug withgoenv
About
Go Version Manager (same as rbenv, pyenv, tfenv and tgenv)