Skip to content

Commit

Permalink
update: readme
Browse files Browse the repository at this point in the history
phantacix committed Feb 18, 2024
1 parent 67e9479 commit 7d20f22
Showing 3 changed files with 11 additions and 11 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# g
# gvm

![GitHub release (latest by date)](https://img.shields.io/github/v/release/voidint/g)
[![GoDoc](https://godoc.org/github.com/voidint/g?status.svg)](https://godoc.org/github.com/voidint/g)
@@ -10,7 +10,7 @@

**Note:** The master branch may still be under development and may not represent a stable version. Please download stable versions of the source code through tags or download compiled binary executables through [release](https://github.com/voidint/g/releases).

`g` is a command-line tool for Linux, macOS, and Windows that provides convenient management and switching of multiple versions of the [Go](https://golang.org/) environment.
`gvm` is a command-line tool for Linux, macOS, and Windows that provides convenient management and switching of multiple versions of the [Go](https://golang.org/) environment.

[![asciicast](https://asciinema.org/a/356685.svg)](https://asciinema.org/a/356685)

@@ -104,7 +104,7 @@ To install a specific version of Go (e.g., 1.20.5):
```shell
$ g install 1.14.7
Downloading 100% [===============] (92/92 MB, 12 MB/s)
Downloading 100% [===============] (92/92 MB, 12 MB/s)
Computing checksum with SHA256
Checksums matched
Now using go1.20.5
@@ -126,7 +126,7 @@ $ g ls-remote
1.2.2
1.3
1.3.1
...
...
1.19.10
1.20rc1
1.20rc2
@@ -156,7 +156,7 @@ Uninstalled go1.19.10
To clear the package file cache for Go installations:
```shell
$ g clean
$ g clean
Remove go1.18.10.darwin-arm64.tar.gz
Remove go1.19.10.darwin-arm64.tar.gz
Remove go1.20.5.darwin-arm64.tar.gz
@@ -225,7 +225,7 @@ Remove /Users/voidint/.g
- After installing a go version using g, when running the `go version` command, the output shows a different version than the one installed. Is this a bug?
This is likely due to an incorrect setting of the `PATH` environment variable in the current shell environment (it is recommended to run `which go` to see the path of the go binary file). By default, the path to the go binary file should be `~/.g/go/bin/go`. If it is not this path, it means that the PATH environment variable is set incorrectly.
- Does g support compiling and installing from source code?
No, it does not support compiling and installing from source code.
8 changes: 4 additions & 4 deletions README_CN.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# g
# gvm

![GitHub release (latest by date)](https://img.shields.io/github/v/release/voidint/g)
[![GoDoc](https://godoc.org/github.com/voidint/g?status.svg)](https://godoc.org/github.com/voidint/g)
@@ -104,7 +104,7 @@ $ g ls-remote stable
```shell
$ g install 1.14.7
Downloading 100% [===============] (92/92 MB, 12 MB/s)
Downloading 100% [===============] (92/92 MB, 12 MB/s)
Computing checksum with SHA256
Checksums matched
Now using go1.20.5
@@ -156,7 +156,7 @@ Uninstalled go1.19.10
清空 go 安装包文件缓存
```shell
$ g clean
$ g clean
Remove go1.18.10.darwin-arm64.tar.gz
Remove go1.19.10.darwin-arm64.tar.gz
Remove go1.20.5.darwin-arm64.tar.gz
@@ -225,7 +225,7 @@ Remove /Users/voidint/.g
- 使用 g 安装了某个 go 版本后,执行`go version`命令,但输出的 go 版本号并非是所安装的那个版本,这是不是 bug ?
由于当前 shell 环境中`PATH`环境变量设置有误导致(建议执行`which go`查看二进制文件所在路径)。在未修改 g 家目录的情况下,二进制文件 go 的路径应该是`~/.g/go/bin/go`,如果不是这个路径,就说明`PATH`环境变量设置有误。
- 支持源代码编译安装吗?
不支持
2 changes: 1 addition & 1 deletion package.sh
Original file line number Diff line number Diff line change
@@ -30,7 +30,7 @@ function get_os() {
}

function package() {
printf "============Pakcage for %s============\n" $2
printf "============Package for %s============\n" $2
local release=${1}
local osarch=(${2//_/ })
local os=${osarch[0]}

0 comments on commit 7d20f22

Please sign in to comment.