修改自定义包示范代码错误 (#399)

* 修改自定义包示范代码错误

* 修改与原版测试不同代码
This commit is contained in:
Lynn
2017-10-13 04:11:15 -05:00
committed by 无闻
parent 2c8d783bcf
commit 88dc3bc1cb
3 changed files with 4 additions and 4 deletions

View File

@@ -99,12 +99,12 @@ include $(GOROOT)/src/Make.pkg
```go ```go
package main package main
import ( import (
"fmt"
"./uc/uc" "./uc/uc"
"fmt"
) )
func main() { func main() {
str1 := "USING package uc" str1 := "USING package uc!"
fmt.Println(uc.UpperCase(str1)) fmt.Println(uc.UpperCase(str1))
} }
``` ```
@@ -124,7 +124,7 @@ include $(GOROOT)/src/Make.cmd
执行 gomake 编译 `ucmain.go` 成可执行文件ucmain 执行 gomake 编译 `ucmain.go` 成可执行文件ucmain
运行 `./ucmain` 显示: `USING package uc!` 运行 `./ucmain` 显示: `USING PACKAGE UC!`
## 9.8.2 本地安装包 ## 9.8.2 本地安装包

View File

@@ -6,6 +6,6 @@ import (
) )
func main() { func main() {
str1 := "USING package uc" str1 := "USING package uc!"
fmt.Println(uc.UpperCase(str1)) fmt.Println(uc.UpperCase(str1))
} }