You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
by alexluecking:
The text was updated successfully, but these errors were encountered: