aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey Mirtchovski <mirtchovski@gmail.com>2010-04-29 14:06:27 +1000
committerAndrew Gerrand <adg@golang.org>2010-04-29 14:06:27 +1000
commitad26019ba69628b17d3749fdb460925b94c985d4 (patch)
tree29cca1324f3dc8e15e73aa0de73c4faf3e6b78e6
parent718da3339a61bda23659acb8c7a3f41c7dd0b86d (diff)
downloadgo-ad26019ba69628b17d3749fdb460925b94c985d4.tar.gz
go-ad26019ba69628b17d3749fdb460925b94c985d4.zip
codelab/index.html "os" needs to be imported because os.Error is used almost immediately
Also, calling fmt, ioutil and os "builtin" is probably confusing. R=adg CC=golang-dev https://golang.org/cl/965045
-rw-r--r--doc/codelab/wiki/index.html9
1 files changed, 6 insertions, 3 deletions
diff --git a/doc/codelab/wiki/index.html b/doc/codelab/wiki/index.html
index b8ae920584..898ea01d17 100644
--- a/doc/codelab/wiki/index.html
+++ b/doc/codelab/wiki/index.html
@@ -58,13 +58,15 @@ package main
import (
"fmt"
"io/ioutil"
+ "os"
)
</pre>
<p>
-Both <code>fmt</code> and <code>ioutil</code> are built-in packages that
-we'll be using. Later, as we implement additional functionality, we will add
-more packages to this <code>import</code> declaration.
+We import the <code>fmt</code>, <code>ioutil</code> and <code>os</code>
+packages from the Go standard library. Later, as we implement additional
+functionality, we will add more packages to this <code>import</code>
+declaration.
</p>
<h2>Data Structures</h2>
@@ -304,6 +306,7 @@ import (
"fmt"
<b>"http"</b>
"io/ioutil"
+ "os"
)
</pre>