GVM

Go Version Manager - 简单高效的 Go 版本管理工具

Go Version Manager - Simple and Efficient Go Version Management Tool

版本管理

Version Management

轻松安装、切换和管理多个 Go 版本

Easily install, switch and manage multiple Go versions

gvm install -version 1.20.0
gvm use -version 1.20.0

环境配置

Environment Configuration

灵活配置 Go 环境变量和代理设置

Flexible configuration of Go environment variables and proxy settings

gvm env private -url https://ok.github.com
gvm env proxy -url https://goproxy.cn

缓存管理

Cache Management

查看和管理 Go 模块缓存

View and manage Go module cache

gvm cache

使用说明

Usage Guide

下载 GVM

Download GVM

选择适合你操作系统的版本

Choose the version for your operating system

安装说明

Installation Guide

  1. 下载适合你操作系统的版本
  2. Download the version for your operating system
  3. 将文件移动到系统 PATH 目录(如 /usr/local/bin)
  4. Move the file to your system PATH (e.g., /usr/local/bin)
  5. 添加执行权限:chmod +x gvm
  6. Add execute permission: chmod +x gvm
  7. 验证安装:gvm version
  8. Verify installation: gvm version
GitHub 仓库 GitHub Repository v0.1.0