# gvm **Repository Path**: fastcity/gvm ## Basic Information - **Project Name**: gvm - **Description**: No description available - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-06-10 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # g [![Build Status](https://travis-ci.org/voidint/g.svg?branch=master)](https://travis-ci.org/voidint/g) [![GoDoc](https://godoc.org/github.com/voidint/g?status.svg)](https://godoc.org/github.com/voidint/g) [![codecov](https://codecov.io/gh/voidint/g/branch/master/graph/badge.svg)](https://codecov.io/gh/voidint/g) [![codebeat badge](https://codebeat.co/badges/0b4bf243-95da-444c-b163-6cb8a35d1f8d)](https://codebeat.co/projects/github-com-voidint-g-master) [![Go Report Card](https://goreportcard.com/badge/github.com/voidint/g)](https://goreportcard.com/report/github.com/voidint/g) `g`是一个Linux、macOS、Windows下的命令行工具,可以提供一个便捷的多版本[go](https://golang.org/)环境的管理和切换。 ![g](https://raw.githubusercontent.com/voidint/g/master/tty.gif) ## 特性 - 支持列出可供安装的go版本号 - 支持列出已安装的go版本号 - 支持在本地安装多个go版本 - 支持卸载已安装的go版本 - 支持在已安装的go版本之间自由切换 ## 安装 ### 自动化安装 - Linux/macOS(适用于bash、zsh) ```shell # 建议安装前清空`GOROOT`、`GOBIN`等环境变量 $ wget -qO- https://raw.githubusercontent.com/voidint/g/master/install.sh | bash $ echo "unalias g" >> ~/.bashrc # 可选。若其他程序(如'git')使用了'g'作为别名。 $ source ~/.bashrc # 或者 source ~/.zshrc ``` ### 手动安装 - 下载对应平台的[二进制压缩包](https://github.com/voidint/g/releases)。 - 将压缩包解压至`PATH`环境变量目录下,如`/usr/local/bin`。 - 编辑shell环境配置文件(`~/.bashrc`、`~/.zshrc`...) ```shell $ cat>>~/.bashrc<