Skip to content

zcorky/gvm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

GVM - Go Version Manager

Release Build Status GitHub issues

Installation

# CURL
curl -o- https://raw.githubusercontent.com/zcorky/gvm/master/install | bash

# WGET
wget -qO- https://raw.githubusercontent.com/zcorky/gvm/master/install | bash

Features

  • Switch different versions
  • List all local installed versions
  • List all remote versions
  • Show current version
  • Remove unused versions
  • Local tmp go version with .gvmrc
  • Exec command with specify version
  • Enter new shell with specify version

Usage

Go Version Manager (v1.5.0)

Go Version Manager is a tool for managing multiple Go versions.

Usage:
  gvm install <version>   - Install Go version
  gvm use <version>       - Use Go version
  gvm remove <version>    - Remove Go version
  gvm ls                  - List the Go versions installed
  gvm ls-remote           - List all Go versions from remote
  gvm current             - Show current Go version
  gvm exec                - Exec command with Go version
  gvm shell               - Enter new shell with Go version
  gvm help                - Show help

Example:
  gvm install v1.20
  gvm use v1.20
  gvm remove v1.20
  gvm ls
  gvm ls-remote
  gvm current
  gvm exec v1.18 go version
  gvm shell v1.18

Local tmp go version with .gvmrc

# write file .gvmrc with specify go version
v1.21

FAQ

    1. 问题:gvm: command not found
    • 解决方案 1:执行 source 重写加载环境变量
    • 解决方案 2:重启你的 terminal
    • 解决方案 3:执行 zmicro register 重写注册环境,然后重新走解决方案 1 或 2

License

ZMicro Design is released under the MIT License.

Releases

No releases published

Packages

No packages published

Languages