Merge commit 'b013829d02e91d2127525e66f22227ca61e873a0' into ja
This commit is contained in:
@@ -468,7 +468,7 @@ Go程序会自动调用`init()`和`main()`,所以你不需要在任何地方
|
||||
|
||||
fmt.Println("hello world")
|
||||
|
||||
上面这个fmt是Go语言的标准库,其实是去goroot下去加载该模块,当然Go的import还支持如下两种方式来加载自己写的模块:
|
||||
上面这个fmt是Go语言的标准库,其实是去`GOROOT`环境变量指定目录下去加载该模块,当然Go的import还支持如下两种方式来加载自己写的模块:
|
||||
|
||||
1. 相对路径
|
||||
|
||||
|
||||
Reference in New Issue
Block a user