From: Ian Lance Taylor
Date: Tue, 29 Jan 2019 02:42:37 +0000 (-0800)
Subject: doc: go1.12: mention change in text/template user function panic
X-Git-Tag: go1.12rc1~31
X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=df719d9809daa2abcbce6a24ee8183a84cccf094;p=gostls13.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
TryBot-Result: Gobot Gobot
Reviewed-by: Daniel MartÃ
---
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 {
executing "tmpl" at <.very.deep.context.value.notpresent>: map has no entry for key "notpresent"
+
+
+ If a user-defined function called by a template panics, the
+ panic is now caught and returned as an error by
+ the Execute
or ExecuteTemplate
method.
+
- unsafe