mirror of https://github.com/golang/go.git
doc: go1.12: mention change in text/template user function panic
Updates #28242 Change-Id: Ib717b64f1f368cc889895a2437ff2943ed4eab0d Reviewed-on: https://go-review.googlesource.com/c/159998 Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
This commit is contained in:
parent
66065c3115
commit
df719d9809
|
|
@ -882,6 +882,12 @@ for {
|
||||||
<code>executing "tmpl" at <.very.deep.context.value.notpresent>: map has no entry for key "notpresent"</code>
|
<code>executing "tmpl" at <.very.deep.context.value.notpresent>: map has no entry for key "notpresent"</code>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
<dd>
|
||||||
|
<p><!-- CL 143097 -->
|
||||||
|
If a user-defined function called by a template panics, the
|
||||||
|
panic is now caught and returned as an error by
|
||||||
|
the <code>Execute</code> or <code>ExecuteTemplate</code> method.
|
||||||
|
</p>
|
||||||
</dl><!-- text/template -->
|
</dl><!-- text/template -->
|
||||||
|
|
||||||
<dl id="unsafe"><dt><a href="/pkg/unsafe/">unsafe</a></dt>
|
<dl id="unsafe"><dt><a href="/pkg/unsafe/">unsafe</a></dt>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue