]> Cypherpunks repositories - gostls13.git/commitdiff
codelab/index.html "os" needs to be imported because os.Error is used almost immediately
authorAndrey Mirtchovski <mirtchovski@gmail.com>
Thu, 29 Apr 2010 04:06:27 +0000 (14:06 +1000)
committerAndrew Gerrand <adg@golang.org>
Thu, 29 Apr 2010 04:06:27 +0000 (14:06 +1000)
Also, calling fmt, ioutil and os "builtin" is probably confusing.

R=adg
CC=golang-dev
https://golang.org/cl/965045

doc/codelab/wiki/index.html

index b8ae9205843320bd802014cec3023006d66c936a..898ea01d17b8a79cca68240d038096f34da2c74f 100644 (file)
@@ -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>