Skip to content

Commit b013829

Browse files
committed
环境变量名应为大写
看了下书里提到 goroot 只有一处 > ➜ ebook git:(master) grep goroot *.md 02.3.md:上面这个fmt是Go语言的标准库,其实是去goroot下去加载该模块,当然Go的import还支持如下两种方式来加载自己写的模块: 而fmt 包的位置则是在 `GOROOT` 环境变量指定目录下的 `src/pkg/fmt`中。
1 parent 93fb25e commit b013829

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ebook/02.3.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ Go程序会自动调用`init()`和`main()`,所以你不需要在任何地方
468468

469469
fmt.Println("hello world")
470470

471-
上面这个fmt是Go语言的标准库,其实是去goroot下去加载该模块,当然Go的import还支持如下两种方式来加载自己写的模块:
471+
上面这个fmt是Go语言的标准库,其实是去`GOROOT`环境变量指定目录下去加载该模块,当然Go的import还支持如下两种方式来加载自己写的模块:
472472

473473
1. 相对路径
474474

0 commit comments

Comments
 (0)