https://github.com/cnk3x/goman
go sdk manage
https://github.com/cnk3x/goman
Last synced: 2 months ago
JSON representation
go sdk manage
- Host: GitHub
- URL: https://github.com/cnk3x/goman
- Owner: cnk3x
- License: mit
- Created: 2021-07-27T11:55:37.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-08-11T08:55:44.000Z (almost 3 years ago)
- Last Synced: 2025-02-15T08:30:47.227Z (4 months ago)
- Language: Shell
- Size: 24.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# goman
管理golang sdk的版本
## install
```shell
curl -SsL https://raw.githubusercontent.com/cnk3x/goman/main/install.sh | bash
```**国内**
```shell
curl -SsL https://gitee.com/k3x/goman/raw/main/install_gitee.sh | bash
```## usage
```shell
$ goman
管理golang sdk的版本Usage:
goman [Command] [Flags]:
goman [go command and flags]Example:
goman download 1.16.8
goman use 1.16.8
goman 1.16.8 versionAvailable Commands:
list, ls 版本
download, dl 下载
upgrade, up 更新
use, install, i 设置默认版本
cleanup, rm 删除旧版,每个大版本仅保留最新的一个
remove, rm 删除
``````shell
$ goman list -h
列出版本号Usage:
goman list [Flags]:Flags:
-a 列出所有可安装的版本号
-i 列出已安装的版本
-c 当前使用版本
``````shell
$ goman upgrade -h
更新当前使用的版本到最新版Usage:
goman upgrade [Flags]Example:
goman upgrade
goman upgrade -cFlags:
-c 更新当前小版本到最新版
``````shell
$ goman download -h
下载指定版本Usage:
goman downloadExample:
goman download go1.17rc1
goman download go1.16.6
``````shell
$ goman use -h
设置默认版本Usage:
goman useExample:
goman use 1.19
goman use 1.18.5
goman use 1.18
``````shell
$ goman cleanup -h
清理版本 - 每一个大版本保留最新的一个版本Usage:
goman cleanupExample:
goman cleanup
goman cleanup 1.18
``````shell
$ goman remove -h
删除版本Usage:
goman removeExample:
goman remove 1.19
goman remove 1.18.5
goman remove 1.18
```