Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
go
Commits
73b5eb38
Commit
73b5eb38
authored
Mar 24, 2012
by
Rob Pike
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
docs/articles/wiki: minor fixes
R=golang-dev, bradfitz CC=golang-dev
https://golang.org/cl/5900046
parent
c5f695e8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
doc/articles/wiki/wiki.html
doc/articles/wiki/wiki.html
+3
-3
No files found.
doc/articles/wiki/wiki.html
View file @
73b5eb38
...
...
@@ -36,7 +36,7 @@ Install Go (see the <a href="/doc/install">Installation Instructions</a>).
</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>
<pre>
...
...
@@ -551,8 +551,8 @@ to the user.
<p>
There is an inefficiency in this code:
<code>
renderTemplate
</code>
calls
<code>
ParseFile
</code>
every time a page is rendered.
A better approach would be to call
<code>
ParseFile
</code>
once for each
<code>
ParseFile
s
</code>
every time a page is rendered.
A better approach would be to call
<code>
ParseFile
s
</code>
once for each
template at program initialization, and store the resultant
<code>
*Template
</code>
values in a data structure for later use.
</p>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment