Commit ad26019b authored by Andrey Mirtchovski's avatar Andrey Mirtchovski Committed by Andrew Gerrand

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
parent 718da333
...@@ -58,13 +58,15 @@ package main ...@@ -58,13 +58,15 @@ package main
import ( import (
"fmt" "fmt"
"io/ioutil" "io/ioutil"
"os"
) )
</pre> </pre>
<p> <p>
Both <code>fmt</code> and <code>ioutil</code> are built-in packages that We import the <code>fmt</code>, <code>ioutil</code> and <code>os</code>
we'll be using. Later, as we implement additional functionality, we will add packages from the Go standard library. Later, as we implement additional
more packages to this <code>import</code> declaration. functionality, we will add more packages to this <code>import</code>
declaration.
</p> </p>
<h2>Data Structures</h2> <h2>Data Structures</h2>
...@@ -304,6 +306,7 @@ import ( ...@@ -304,6 +306,7 @@ import (
"fmt" "fmt"
<b>"http"</b> <b>"http"</b>
"io/ioutil" "io/ioutil"
"os"
) )
</pre> </pre>
......
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