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
What steps will reproduce the problem?
If possible, include a link to a program on play.golang.org.
1. create a template with multiple sub-templates (if i got the terminology right)
2. .Execute() it with a writer
What is the expected output?
If .Execute() returns an error, the expectation is that no output is written.
What do you see instead?
Depending on how the template is constructed, .Execute() may cause some data to be
written before the error is returned.
It should be documented that if you require no output to be written in the case of an
error, then you should necessarily write out to a temporary buffer and check the error
first, and then copy the buffer to it's final destination.
Please provide any additional information below.
http://play.golang.org/p/1JYAcgouZd
The text was updated successfully, but these errors were encountered:
Yes, the code is working as intended - otherwise the package could require an unbounded
amount of buffering - but perhaps the documentation should say something about the topic.
The text was updated successfully, but these errors were encountered: