Skip to content

Conversation

mikulely
Copy link
Contributor

看了下书里提到 goroot 只有一处

➜ ebook git:(master) grep goroot *.md
02.3.md:上面这个fmt是Go语言的标准库,其实是去goroot下去加载该模块,当然Go的import还支持如下两种方式来加载自己写的模块:

而fmt 包的位置则是在 GOROOT 环境变量指定目录下的 src/pkg/fmt中。

看了下书里提到 goroot 只有一处

> ➜  ebook git:(master) grep goroot *.md
02.3.md:上面这个fmt是Go语言的标准库,其实是去goroot下去加载该模块,当然Go的import还支持如下两种方式来加载自己写的模块:

而fmt 包的位置则是在 `GOROOT` 环境变量指定目录下的 `src/pkg/fmt`中。
astaxie added a commit that referenced this pull request Jan 26, 2014
环境变量名采用大写形式
@astaxie astaxie merged commit 1d811ac into astaxie:master Jan 26, 2014
astaxie added a commit that referenced this pull request Sep 13, 2016
环境变量名采用大写形式
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants