Commit eca2ec07 authored by Andrew Gerrand's avatar Andrew Gerrand

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
parent a169e6cc
......@@ -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>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment