From df719d9809daa2abcbce6a24ee8183a84cccf094 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Mon, 28 Jan 2019 18:42:37 -0800 Subject: [PATCH] doc: go1.12: mention change in text/template user function panic MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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í --- doc/go1.12.html | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/doc/go1.12.html b/doc/go1.12.html index fd1f1a1f4c6871..2591218eda82ba 100644 --- a/doc/go1.12.html +++ b/doc/go1.12.html @@ -882,6 +882,12 @@

Minor changes to the library

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