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 # 卸载
本文链接:https://choudalao.com/article/344
转载请注明来源,感谢尊重原创内容。
留言评论
支持表情、回复和点赞。评论需要先登录。