mirror of
https://github.com/golang/go
synced 2024-11-21 17:54:39 -07:00
doc/go_tutorial: mention order of compilation
In response to this recurring issue: http://groups.google.com/group/golang-nuts/t/710d1e8347cd51fa R=r CC=golang-dev https://golang.org/cl/1682050
This commit is contained in:
parent
a169e6cc6a
commit
eca2ec0786
@ -650,8 +650,12 @@ We can now use our new package:
|
||||
21 }
|
||||
</pre>
|
||||
<p>
|
||||
The ''<code>./</code>'' in the import of ''<code>./file</code>'' tells the compiler to use our own package rather than
|
||||
something from the directory of installed packages.
|
||||
The ''<code>./</code>'' in the import of ''<code>./file</code>'' tells the
|
||||
compiler to use the ''<code>file</code>'' package in the current directory
|
||||
rather than something from the directory of installed packages.
|
||||
</p>
|
||||
<p>
|
||||
You must compile ''<code>file.go</code>'' before any package that imports it.
|
||||
<p>
|
||||
Finally we can run the program:
|
||||
<p>
|
||||
|
Loading…
Reference in New Issue
Block a user