mirror of
https://github.com/unknwon/the-way-to-go_ZH_CN.git
synced 2025-08-11 23:08:34 +08:00
@@ -16,7 +16,7 @@ go install 使用了 GOPATH 变量(详见第 2.2 节)。
|
||||
|
||||
使用命令安装:`go install tideland-cgl.googlecode.com/hg`。
|
||||
|
||||
可执行文件 `hg.a` 将被放到 `$GOPATH/pkg/linux_amd64/tideland-cgl.googlecode.com` 目录下,源码文件被放置在 `$GOPATH//src/tideland-cgl.googlecode.com/hg` 目录下,同样有个 `hg.a` 放置在 `_obj` 的子目录下。
|
||||
可执行文件 `hg.a` 将被放到 `$GOROOT/pkg/linux_amd64/tideland-cgl.googlecode.com` 目录下,源码文件被放置在 `$GOROOT/src/tideland-cgl.googlecode.com/hg` 目录下,同样有个 `hg.a` 放置在 `_obj` 的子目录下。
|
||||
|
||||
现在就可以在 go 代码中使用这个包中的功能了,例如使用包名 cgl 导入:
|
||||
|
||||
|
Reference in New Issue
Block a user