mirror of
https://github.com/golang/go
synced 2024-11-22 04:24:39 -07:00
docs/articles/wiki: minor fixes
R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/5900046
This commit is contained in:
parent
c5f695e863
commit
73b5eb38c1
@ -36,7 +36,7 @@ Install Go (see the <a href="/doc/install">Installation Instructions</a>).
|
|||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
Make a new directory for this tutorial and cd to it:
|
Make a new directory for this tutorial inside your <code>GOPATH</code> and cd to it:
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<pre>
|
<pre>
|
||||||
@ -551,8 +551,8 @@ to the user.
|
|||||||
|
|
||||||
<p>
|
<p>
|
||||||
There is an inefficiency in this code: <code>renderTemplate</code> calls
|
There is an inefficiency in this code: <code>renderTemplate</code> calls
|
||||||
<code>ParseFile</code> every time a page is rendered.
|
<code>ParseFiles</code> every time a page is rendered.
|
||||||
A better approach would be to call <code>ParseFile</code> once for each
|
A better approach would be to call <code>ParseFiles</code> once for each
|
||||||
template at program initialization, and store the resultant
|
template at program initialization, and store the resultant
|
||||||
<code>*Template</code> values in a data structure for later use.
|
<code>*Template</code> values in a data structure for later use.
|
||||||
</p>
|
</p>
|
||||||
|
Loading…
Reference in New Issue
Block a user