golang多版本管理工具g使用(windows)

发布时间 2023-12-16 04:16:07作者: 落樱纷飞

1.下载地址

https://github.com/voidint/g/releases

2.选择win版本包

image

3.解压后将g.exe放入自定义目录,这里我放在C:\Program Files\g
image

4.设置环境变量
编辑系统变量, 添加Path值
image

5.打开powershell
image

6.默认情况下,安装的文件都会放到用户home路径下,在用户目录下会生成.g文件夹。
image

参考:
1.https://github.com/voidint/g/blob/master/README_CN.md
2.https://blog.csdn.net/cf313995/article/details/109517921