aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2019-01-28 18:42:37 -0800
committerIan Lance Taylor <iant@golang.org>2019-01-29 14:52:45 +0000
commitdf719d9809daa2abcbce6a24ee8183a84cccf094 (patch)
treeb8ac6b77902782c4a88ff12796944685eb2c49c2
parent66065c3115861c73b8804037a6d9d5986ffa9913 (diff)
downloadgo-df719d9809daa2abcbce6a24ee8183a84cccf094.tar.xz
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>
-rw-r--r--doc/go1.12.html6
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/go1.12.html b/doc/go1.12.html
index fd1f1a1f4c..2591218eda 100644
--- a/doc/go1.12.html
+++ b/doc/go1.12.html
@@ -882,6 +882,12 @@ for {
<code>executing "tmpl" at <.very.deep.context.value.notpresent>: map has no entry for key "notpresent"</code>
</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 id="unsafe"><dt><a href="/pkg/unsafe/">unsafe</a></dt>