Skip to content

Small mistake in Doc/Articles Writeing Web Applications #4834

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
gopherbot opened this issue Feb 17, 2013 · 2 comments
Closed

Small mistake in Doc/Articles Writeing Web Applications #4834

gopherbot opened this issue Feb 17, 2013 · 2 comments
Milestone

Comments

@gopherbot
Copy link
Contributor

by alexluecking:

In the Article "Writing Web Application" under "Template caching" is
a mistake:

The text in question is:
,,A for loop is used with a range statement to iterate over an array constant containing
the names of the templates we want parsed. If we were to add more templates to our
program, we would add their names to that array."

But in the example above is no for loop involved. The Code used is simply:

var templates = template.Must(template.ParseFiles("edit.html",
"view.html"))


What steps will reproduce the problem?
1. Visit http://golang.org/doc/articles/wiki/
2. Follow Tutorial to "Template caching"

What is the expected output?
A for loop in the given source code

What do you see instead?
No for loop
@robpike
Copy link
Contributor

robpike commented Feb 27, 2013

Comment 1:

Labels changed: added priority-later, go1.1, removed priority-triage, go1.1maybe.

Owner changed to @adg.

Status changed to Accepted.

@adg
Copy link
Contributor

adg commented Feb 27, 2013

Comment 2:

Fixed by https://code.google.com/p/go/source/detail?r=1d55e585ed6b

Status changed to Fixed.

@rsc rsc added this to the Go1.1 milestone Apr 14, 2015
@rsc rsc removed the go1.1 label Apr 14, 2015
@golang golang locked and limited conversation to collaborators Jun 24, 2016
@rsc rsc unassigned adg Jun 22, 2022
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants