mirror of
https://github.com/golang/go
synced 2024-11-21 14:54:40 -07:00
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
This commit is contained in:
parent
718da3339a
commit
ad26019ba6
@ -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>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user