add new chinese translations

This commit is contained in:
2024-12-30 15:25:56 +08:00
parent a850046d7b
commit 0d798759fd
5418 changed files with 105800 additions and 7052 deletions

View File

@@ -1,26 +1,26 @@
# go
# Go
> 管理 Go 源代码的工具
> 此命令也有关于其子命令的文件,例如`build`.
> 更多信息:<https://golang.org>.
> 管理 Go 源代码。
> 一些子命令,例如 `build`,有自己的使用文档。
> 更多信息:<https://golang.org>
- 下载并安装由其路径指定的包:
- 下载并安装指定的包,使用其导入路径
`go get {{路径/到/包}}`
`go get {{package_path}}`
- 编译并运行一个源文件(必须包含一个 `main` 包):
- 编译并运行源文件(必须包含 `main` 包):
`go run {{文件}}.go`
`go run {{file}}.go`
- 将源文件编译为当前命名可执行文件:
- 将源文件编译为命名可执行文件:
`go build -o {{可执行文件}} {{文件}}.go`
`go build -o {{executable}} {{file}}.go`
- 编译当前目录中的包:
`go build`
- 执行当前包的所有测试用例(文件必须以 `_test.go` 结尾):
- 执行当前包的所有测试用例(文件必须以 `_test.go` 结尾):
`go test`
@@ -28,6 +28,6 @@
`go install`
- 在当前目录初始化一个新模块:
- 在当前目录初始化一个新模块:
`go mod init {{模块}}`
`go mod init {{module_name}}`