add new chinese translations
This commit is contained in:
20
pages.zh/common/go-install.md
Normal file
20
pages.zh/common/go-install.md
Normal file
@@ -0,0 +1,20 @@
|
||||
# go install
|
||||
|
||||
> 编译并安装由导入路径命名的包。
|
||||
> 更多信息:<https://pkg.go.dev/cmd/go#hdr-Compile_and_install_packages_and_dependencies>。
|
||||
|
||||
- 编译并安装当前包:
|
||||
|
||||
`go install`
|
||||
|
||||
- 编译并安装特定的本地包:
|
||||
|
||||
`go install {{path/to/package}}`
|
||||
|
||||
- 安装最新版本的程序,忽略当前目录中的 `go.mod` 文件:
|
||||
|
||||
`go install {{golang.org/x/tools/gopls}}@{{latest}}`
|
||||
|
||||
- 安装当前目录中 `go.mod` 选择的版本的程序:
|
||||
|
||||
`go install {{golang.org/x/tools/gopls}}`
|
Reference in New Issue
Block a user