mirror of
https://github.com/unknwon/the-way-to-go_ZH_CN.git
synced 2025-08-12 00:11:36 +08:00
修正一些小错误和语言不通顺的地方 (#274)
* Update 07.3.md * Update 07.3.md * Update 07.6.md * fix few problems
This commit is contained in:
@@ -66,12 +66,12 @@ func TestUC(t *testing.T) {
|
||||
}
|
||||
```
|
||||
|
||||
通过指令编译并安装包到本地:`go install src/uc`, 这会将 uc.a 复制到 pkg/linux_amd64 下面。
|
||||
通过指令编译并安装包到本地:`go install uc`, 这会将 uc.a 复制到 pkg/linux_amd64 下面。
|
||||
|
||||
另外,使用 make,通过以下内容创建一个包的 Makefile(1) 在 src/uc 目录下:
|
||||
另外,使用 make ,通过以下内容创建一个包的 Makefile(1) 在 src/uc 目录下:
|
||||
|
||||
```
|
||||
include $GOROOT/src/Make.inc
|
||||
include $(GOROOT)/src/Make.inc
|
||||
|
||||
TARG=uc
|
||||
GOFILES=\
|
||||
@@ -114,12 +114,12 @@ func main() {
|
||||
另外复制 uc.a 到 uc 目录并创建一个 Makefile(2) 并写入文本:
|
||||
|
||||
```
|
||||
include $GOROOT/src/Make.inc
|
||||
include $(GOROOT)/src/Make.inc
|
||||
TARG=ucmain
|
||||
GOFILES=\
|
||||
ucmain.go\
|
||||
|
||||
include $GOROOT/src/Make.cmd
|
||||
include $(GOROOT)/src/Make.cmd
|
||||
```
|
||||
|
||||
执行 gomake 编译 `ucmain.go` 成可执行文件ucmain
|
||||
|
Reference in New Issue
Block a user