Go 版本管理工具
简介
Go 版本管理工具
简介
GitHub: https://github.com/voidint/g
特点:单文件 Shell 脚本,无依赖,支持 Linux/macOS/Windows (WSL)
安装简单,速度快
安装
wget -O g.sh https://raw.githubusercontent.com/voidint/g/master/install.sh && bash g.sh
默认安装到 ~/.g/go,自动配置 PATH 和 GOROOT。
常用命令
g install 1.23.0 # 安装指定版本
g use 1.23.0 # 切换到该版本(临时)
g ls # 列出已安装版本
g ls-remote # 列出所有可安装版本
g uninstall 1.21.5 # 卸载

微信收款码
支付宝收款码