Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

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

NameName
Last commit message
Last commit date

Latest commit

 

History

77 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Release VersionBuild CICodeQLGo Report CardLicenseReleases

goenv (Golang Version Manager)

goenv is a command-line tool to manage multiple versions of Golang on your system.

Installation

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

Usage

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

List all remote versions of GOLANG

$ goenv --list-remote1.21rc31.21rc21.20.61.20.51.20.41.20.31.20.21.20.1...

Install a specific version of GOLANG

$ 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.

Use a specific version of GOLANG

$ goenv --use 1.20.6Using Go version 1.20.6.Please make sure to execute:source~/.bashrc

List all installed GOLANG versions

$ goenv --listInstalled Golang versions:* 1.20.6  (Currently active GOLANG version)  1.20.5  1.20.4

Supported Shell

  • Bash
  • Zsh

Support

Feel free to create an Issue/Pull Request if you find any bug withgoenv


[8]ページ先頭

©2009-2025 Movatter.jp